Codec

zio.http.Header.Codec
trait Codec[A]

Type class for typed access to a single HTTP header.

Implementations provide the canonical header name together with parsing and rendering logic for a domain value. Parsing failures should return a human- readable error instead of constructing an invalid value.

Attributes

Source
Header.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Typed[H]
object HxBoosted
object HxCurrentUrl
object HxLocation
object HxPrompt
object HxPushUrl
object HxRedirect
object HxRefresh
object HxReplaceUrl
object HxRequest
object HxReselect
object HxReswap
object HxRetarget
object HxTargetId
object HxTriggerId
object HxTriggerName
object Accept
object AcceptPatch
object AcceptRanges
object Age
object Allow
object Authorization
object CacheControl
object ClearSiteData
object Connection
object ContentBase
object ContentLength
object ContentMd5
object ContentRange
object ContentType
object CookieHeader
object DNT
object Date
object ETag
object Expect
object Expires
object Forwarded
object From
object Host
object IfMatch
object IfNoneMatch
object IfRange
object LastModified
object Link
object Location
object MaxForwards
object Origin
object Pragma
object Range
object Referer
object RetryAfter
object Server
object Te
object Trailer
object Upgrade
object UserAgent
object Vary
object Via
object XFrameOptions
Show all

Members list

Value members

Abstract methods

def name: String

Attributes

Source
Header.scala
def parse(value: String): Either[String, A]

Attributes

Source
Header.scala
def render(value: A): String

Attributes

Source
Header.scala