-
(*
OCaml HTTP - do it yourself (fully OCaml) HTTP daemon
- Copyright (C) <2002-2005> Stefano Zacchiroli <zack@cs.unibo.it>
+ Copyright (C) <2002-2007> Stefano Zacchiroli <zack@cs.unibo.it>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Library General Public License as
(** invalid request URI encountered *)
exception Malformed_request_URI of string
+ (** malformed cookies *)
+exception Malformed_cookies of string
+
(** malformed request received *)
exception Malformed_request of string
(** @return the list of all parameter received via POST *)
method params_POST: (string * string) list
+ method cookies: (string * string) list option
+
(** @return authorization information, if given by the client *)
method authorization: auth_info option
(** timeout in seconds after which an incoming HTTP request will be
* terminated closing the corresponding TCP connection; None disable the
* timeout *)
+ auto_close: bool;
+ (** whether ocaml-http will automatically close the connection with the
+ * client after callback has completed its execution. If set to true, close
+ * will be attempted no matter if the callback raises an exception or not *)
}
(** {2 OO representation of other HTTP entities} *)