Module Ocsigen_requestSource

Sourcetype t
Sourcetype content_type = (string * string) * (string * string) list
Sourcetype file_info = Ocsigen_multipart.file_info = {
  1. tmp_filename : string;
  2. filesize : int64;
  3. raw_original_filename : string;
  4. file_content_type : content_type option;
}
Sourcetype post_data = (string * string) list * (string * file_info) list
Sourcetype client_conn = [
  1. | `Inet of Ipaddr.t * int
  2. | `Unix of string
  3. | `Forwarded_for of string
  4. | `Unknown
]

Type of connection used by the client. `Inet means the client connected through the Internet. `Forwarded_for means that the client connected through a proxy and carries the IP address reported in the HTTP headers.

Sourceval make : ?forward_ip:string list -> ?sub_path:string -> ?original_full_path:string -> ?request_cache:Polytables.t -> ?cookies_override:string Ocsigen_cookie_map.Map_inner.t -> address:Ocsigen_config.Socket_type.t -> port:int -> ssl:bool -> filenames:string list ref -> client_conn:client_conn -> body:Cohttp_lwt.Body.t -> connection_closed:unit Lwt.t -> Cohttp.Request.t -> t
Sourceval update : ?ssl:bool -> ?forward_ip:string list -> ?client_conn:client_conn -> ?sub_path:string -> ?meth:Cohttp.Code.meth -> ?get_params_flat:(string * string) list -> ?post_data:post_data option -> ?cookies_override:string Ocsigen_cookie_map.Map_inner.t -> ?full_rewrite:bool -> ?uri:Uri.t -> t -> t
Sourceval to_cohttp : t -> Cohttp.Request.t
Sourceval uri : t -> Uri.t
Sourceval host : t -> string option
Sourceval meth : t -> Cohttp.Code.meth
Sourceval port : t -> int
Sourceval ssl : t -> bool
Sourceval version : t -> Cohttp.Code.version
Sourceval query : t -> string option
Sourceval get_params : t -> (string * string list) list
Sourceval get_params_flat : t -> (string * string) list
Sourceval path : t -> string list
Sourceval path_string : t -> string
Sourceval sub_path : t -> string list
Sourceval sub_path_string : t -> string
Sourceval original_full_path : t -> string list
Sourceval original_full_path_string : t -> string
Sourceval header : t -> Ocsigen_header.Name.t -> string option
Sourceval header_multi : t -> Ocsigen_header.Name.t -> string list
Sourceval add_header : t -> Ocsigen_header.Name.t -> string -> t
Sourceval cookies : t -> string Ocsigen_cookie_map.Map_inner.t
Sourceval files : t -> string option -> Int64.t option -> (string * file_info) list Lwt.t option
Sourceval post_params : t -> string option -> Int64.t option -> (string * string) list Lwt.t option
Sourceval client_conn : t -> client_conn

The way the client connects to the server (for example, its IP address if connected over the internet).

Sourceval client_conn_to_string : t -> string

A textual representation of client_conn suitable for use in logs.

Sourceval forward_ip : t -> string list
Sourceval content_type : t -> content_type option
Sourceval request_cache : t -> Polytables.t
Sourceval tries : t -> int
Sourceval incr_tries : t -> unit
Sourceval connection_closed : t -> unit Lwt.t
Sourceval timeofday : t -> float