UserAgent

zio.http.Header.UserAgent
See theUserAgent companion trait
object UserAgent extends HeaderType

The "User-Agent" header field contains information about the user agent originating the request, which is often used by servers to help identify the scope of reported interoperability problems, to work around or tailor responses to avoid particular user agent limitations, and for analytics regarding browser or operating system use

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
trait HeaderType
class Object
trait Matchable
class Any
Show all
Self type
UserAgent.type

Members list

Type members

Classlikes

final case class Comment(comment: String) extends UserAgent

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait UserAgent
trait Header
class Object
trait Matchable
class Any
Show all
final case class Complete(product: Product, comment: Option[Comment]) extends UserAgent

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait UserAgent
trait Header
class Object
trait Matchable
class Any
Show all
final case class Product(name: String, version: Option[String]) extends UserAgent

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait UserAgent
trait Header
class Object
trait Matchable
class Any
Show all

Types

override type HeaderValue = UserAgent

Inherited types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

override def name: String

Attributes

Definition Classes
def parse(userAgent: String): Either[String, UserAgent]
def render(userAgent: UserAgent): String