object Companion
source · line 35public companion
Construction and parsing of this structured HTTP field.
function parse
source · line 40public fun parse(value: List<Byte>): HttpAge
Parses the first Age value, tolerating a following comma-separated suffix and saturating decimal overflow; malformed leading syntax throws HttpFieldParseException.
parameter value
source · line 40value: List<Byte>
function parseOrNone
source · line 57public fun parseOrNone(value: List<Byte>): HttpAge?
Parses the complete value, returning None for HttpFieldParseException while propagating unrelated failures.
parameter value
source · line 57value: List<Byte>
function parseFieldsOrNone
source · line 77public fun parseFieldsOrNone(fields: List<HttpField>): HttpAge?
Returns a parsed Age when present and valid, or None for absent/invalid input.
parameter fields
source · line 77fields: List<HttpField>
function parseOrNone
source · line 65public fun parseOrNone(value: String): HttpAge?
Parses the complete value, returning None for HttpFieldParseException while propagating unrelated failures.
parameter value
source · line 65value: String
function parse
source · line 52public fun parse(value: String): HttpAge
Parses the first Age value, tolerating a following comma-separated suffix and saturating decimal overflow; malformed leading syntax throws HttpFieldParseException.
parameter value
source · line 52value: String
function parseFields
source · line 70public fun parseFields(fields: List<HttpField>): HttpAge?
Reads the first Age field, returning None when absent; later Age fields are ignored.
parameter fields
source · line 70fields: List<HttpField>