Module Awskit_s3.Header_valueSource

Validated HTTP header field value.

Sourcetype t

Opaque header value that is non-empty and contains no control characters.

Sourceval of_string : field:string -> string -> (t, Awskit.Error.t) result

Validate a header value for field.

Sourceval of_string_exn : field:string -> string -> t

Like of_string, but raises Awskit.Error.Awskit_error carrying the structured validation error on validation failure.

Sourceval to_string : t -> string

Return the original header value spelling.

Sourceval pp : Format.formatter -> t -> unit

Pretty-print the header value.

Sourceval equal : t -> t -> bool

Compare two header values.