3 OCaml HTTP - do it yourself (fully OCaml) HTTP daemon
5 Copyright (C) <2002-2005> Stefano Zacchiroli <zack@cs.unibo.it>
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU Library General Public License as
9 published by the Free Software Foundation, version 2.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU Library General Public License for more details.
16 You should have received a copy of the GNU Library General Public
17 License along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22 (** Sanity test functions related to HTTP message parsing *)
24 (** @param name an HTTP header name
25 @raise Invalid_header_name if name isn't a valid HTTP header name *)
26 val heal_header_name: string -> unit
28 (** @param value an HTTP header value
29 @raise Invalid_header_value if value isn't a valid HTTP header value *)
30 val heal_header_value: string -> unit
32 (** @param header a pair header_name * header_value
33 @raise Invalid_header_name if name isn't a valid HTTP header name
34 @raise Invalid_header_value if value isn't a valid HTTP header value *)
35 val heal_header: string * string -> unit
37 (** remove heading and/or trailing LWS sequences as per RFC2616 *)
38 val normalize_header_value: string -> string
40 (** parse an URL from a string.
41 @raise Malformed_URL if an invalid URL is encountered *)
42 val url_of_string: string -> Neturl.url
44 (** pretty print an URL *)
45 val string_of_url: Neturl.url -> string