UserAgent

zio.http.Header.UserAgent
See theUserAgent companion class
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
class
Graph
Supertypes
trait Product
trait Mirror
trait HeaderType
class Object
trait Matchable
class Any
Show all
Self type
UserAgent.type

Members list

Type members

Classlikes

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait ProductOrComment

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Comment
class Product

Types

override type HeaderValue = UserAgent

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

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

Inherited methods

Attributes

Inherited from:
HeaderType

Attributes

Inherited from:
HeaderType
override def toHeaders(value: HeaderValue): Headers

Attributes

Definition Classes
Inherited from:
HeaderType