(** HTTP header type and operations. *) module Name = Header_name (** Parsed header. [name_span] is only meaningful when [name = Other]. *) type t = { name : Name.t ; name_span : Span.t ; value : Span.t } (** Find first header by name. Only matches known headers; use [find_string] for [Other]. *) val find : t list -> Name.t -> t option (** Find header by string name (case-insensitive). *) val find_string : Base_bigstring.t -> t list -> string -> t option (** Pretty-print header with buffer (shows actual values). *) val pp_with_buf : Base_bigstring.t -> Stdlib.Format.formatter -> t -> unit (** Pretty-print header structure. *) val pp : Stdlib.Format.formatter -> t -> unit