module Http_parser_sanity: sig
.. end
Sanity test functions related to HTTP message parsing
val heal_header_name : string -> unit
Raises Invalid_header_name
if name isn't a valid HTTP header name
val heal_header_value : string -> unit
Raises Invalid_header_value
if value isn't a valid HTTP header value
val heal_header : string * string -> unit
RaisesInvalid_header_name
if name isn't a valid HTTP header name
Invalid_header_value
if value isn't a valid HTTP header value
val normalize_header_value : string -> string
remove heading and/or trailing LWS sequences as per RFC2616
val url_of_string : string -> Neturl.url
parse an URL from a string.
Raises Malformed_URL
if an invalid URL is encountered
val string_of_url : Neturl.url -> string
pretty print an URL