Update changelog and prepare upload to unstable
[pkg-ocaml-ocsigen.git] / http / ocsigen_headers.mli
blobdbc4e16fc78f7138859dea0ee4dfcac75d1413e1
1 (* Ocsigen
2 * ocsigen_headers.mli Copyright (C) 2005 Vincent Balat
3 * Laboratoire PPS - CNRS Université Paris Diderot
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published by
7 * the Free Software Foundation, with linking exception;
8 * either version 2.1 of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 (** Getting informations from HTTP header. *)
21 (** This module uses the lowel level module Ocsigen_http_frame.Http_header.
22 It is very basic and must be completed for exhaustiveness. *)
25 val get_keepalive : Ocsigen_http_frame.Http_header.http_header -> bool
26 val parse_cookies : string -> string Ocsigen_lib.String_Table.t
27 val parse_mime_type : string -> string option * string option
28 val get_host_from_host_header : Ocsigen_http_frame.t ->
29 string option * int option
30 val get_user_agent : Ocsigen_http_frame.t -> string
31 val get_cookie_string : Ocsigen_http_frame.t -> string option
32 val get_if_modified_since : Ocsigen_http_frame.t -> float option
33 val get_if_unmodified_since : Ocsigen_http_frame.t -> float option
34 val get_if_none_match : Ocsigen_http_frame.t -> string list option
35 val get_if_match : Ocsigen_http_frame.t -> string list option
36 val get_content_type : Ocsigen_http_frame.t -> string option
37 val parse_content_type : string option -> ((string * string) * (string * string) list) option
38 val get_content_length : Ocsigen_http_frame.t -> int64 option
39 val get_referer : Ocsigen_http_frame.t -> string option
40 val get_referrer : Ocsigen_http_frame.t -> string option
41 val get_accept :
42 Ocsigen_http_frame.t ->
43 ((string option * string option) * float option * (string * string) list)
44 list
45 val get_accept_charset : Ocsigen_http_frame.t -> (string option * float option) list
46 val get_accept_encoding : Ocsigen_http_frame.t -> (string option * float option) list
47 val get_accept_language : Ocsigen_http_frame.t -> (string * float option) list
48 val get_range : Ocsigen_http_frame.t -> ((int64 * int64) list * int64 option * Ocsigen_extensions.ifrange) option