`sig
type ifrange = IR_No | IR_Ifunmodsince of float | IR_ifmatch of string
type file_info = {
tmp_filename : string;
filesize : int64;
raw_original_filename : string;
original_basename : string;
file_content_type : ((string * string) * (string * string) list) option;
}
type request_info
val ri_of_url :
?full_rewrite:bool ->
string ->
Ocsigen_request_info.request_info -> Ocsigen_request_info.request_info
val make :
url_string:string ->
meth:Ocsigen_http_frame.Http_header.http_method ->
protocol:Ocsigen_http_frame.Http_header.proto ->
?ssl:bool ->
full_path_string:string ->
full_path:Ocsigen_lib.Url.path ->
?original_full_path_string:string ->
?original_full_path:Ocsigen_lib.Url.path ->
?sub_path:Ocsigen_lib.Url.path ->
?sub_path_string:Ocsigen_lib.Url.uri ->
get_params_string:string option ->
host:string option ->
port_from_host_field:int option ->
get_params:(string * string) list Stdlib.Lazy.t ->
?initial_get_params:(string * string) list Stdlib.Lazy.t ->
post_params:(string option * Stdlib.Int64.t option ->
(string * string) list Lwt.t)
option ->
files:(string option * Stdlib.Int64.t option ->
(string * Ocsigen_request_info.file_info) list Lwt.t)
option ->
remote_inet_addr:Unix.inet_addr ->
remote_ip:string ->
?remote_ip_parsed:Ipaddr.t Stdlib.Lazy.t ->
remote_port:int ->
?forward_ip:string list ->
server_port:int ->
user_agent:string ->
cookies_string:string option Stdlib.Lazy.t ->
cookies:string Ocsigen_cookies.CookiesTable.t Stdlib.Lazy.t ->
ifmodifiedsince:float option ->
ifunmodifiedsince:float option ->
ifnonematch:string list option ->
ifmatch:string list option ->
content_type:((string * string) * (string * string) list) option ->
content_type_string:string option ->
content_length:int64 option ->
referer:string option Stdlib.Lazy.t ->
origin:string option Stdlib.Lazy.t ->
access_control_request_method:string option Stdlib.Lazy.t ->
access_control_request_headers:string list option Stdlib.Lazy.t ->
accept:Http_headers.accept Stdlib.Lazy.t ->
accept_charset:(string option * float option) list Stdlib.Lazy.t ->
accept_encoding:(string option * float option) list Stdlib.Lazy.t ->
accept_language:(string * float option) list Stdlib.Lazy.t ->
http_frame:Ocsigen_http_frame.t ->
?request_cache:Polytables.t ->
client:Ocsigen_http_com.connection ->
range:((int64 * int64) list * int64 option * Ocsigen_request_info.ifrange)
option Stdlib.Lazy.t ->
?timeofday:float ->
?nb_tries:int ->
?connection_closed:unit Lwt.t ->
unit -> Ocsigen_request_info.request_info
val update :
Ocsigen_request_info.request_info ->
?url_string:string ->
?meth:Ocsigen_http_frame.Http_header.http_method ->
?protocol:Ocsigen_http_frame.Http_header.proto ->
?ssl:bool ->
?full_path_string:string ->
?full_path:string list ->
?original_full_path_string:string ->
?original_full_path:string list ->
?sub_path:string list ->
?sub_path_string:string ->
?get_params_string:string option ->
?host:string option ->
?port_from_host_field:int option ->
?get_params:(string * string) list Stdlib.Lazy.t ->
?initial_get_params:(string * string) list Stdlib.Lazy.t ->
?post_params:(string option * Stdlib.Int64.t option ->
(string * string) list Lwt.t)
option ->
?files:(string option * Stdlib.Int64.t option ->
(string * Ocsigen_request_info.file_info) list Lwt.t)
option ->
?remote_inet_addr:Unix.inet_addr ->
?remote_ip:string ->
?remote_ip_parsed:Ipaddr.t Stdlib.Lazy.t ->
?remote_port:int ->
?forward_ip:string list ->
?server_port:int ->
?user_agent:string ->
?cookies_string:string option Stdlib.Lazy.t ->
?cookies:string Ocsigen_cookies.CookiesTable.t Stdlib.Lazy.t ->
?ifmodifiedsince:float option ->
?ifunmodifiedsince:float option ->
?ifnonematch:string list option ->
?ifmatch:string list option ->
?content_type:((string * string) * (string * string) list) option ->
?content_type_string:string option ->
?content_length:int64 option ->
?referer:string option Stdlib.Lazy.t ->
?origin:string option Stdlib.Lazy.t ->
?access_control_request_method:string option Stdlib.Lazy.t ->
?access_control_request_headers:string list option Stdlib.Lazy.t ->
?accept:Http_headers.accept Stdlib.Lazy.t ->
?accept_charset:(string option * float option) list Stdlib.Lazy.t ->
?accept_encoding:(string option * float option) list Stdlib.Lazy.t ->
?accept_language:(string * float option) list Stdlib.Lazy.t ->
?http_frame:Ocsigen_http_frame.t ->
?request_cache:Polytables.t ->
?client:Ocsigen_http_com.connection ->
?range:((int64 * int64) list * int64 option *
Ocsigen_request_info.ifrange)
option Stdlib.Lazy.t ->
?timeofday:float ->
?nb_tries:int ->
?connection_closed:unit Lwt.t ->
unit -> Ocsigen_request_info.request_info
val update_nb_tries : Ocsigen_request_info.request_info -> int -> unit
val update_request_cache :
Ocsigen_request_info.request_info -> Polytables.t -> unit
val range :
Ocsigen_request_info.request_info ->
((int64 * int64) list * int64 option * Ocsigen_request_info.ifrange)
option Stdlib.Lazy.t
val url_string : Ocsigen_request_info.request_info -> string
val protocol :
Ocsigen_request_info.request_info -> Ocsigen_http_frame.Http_header.proto
val http_frame : Ocsigen_request_info.request_info -> Ocsigen_http_frame.t
val meth :
Ocsigen_request_info.request_info ->
Ocsigen_http_frame.Http_header.http_method
val ifmatch : Ocsigen_request_info.request_info -> string list option
val ifunmodifiedsince : Ocsigen_request_info.request_info -> float option
val ifnonematch : Ocsigen_request_info.request_info -> string list option
val ifmodifiedsince : Ocsigen_request_info.request_info -> float option
val remote_ip : Ocsigen_request_info.request_info -> string
val user_agent : Ocsigen_request_info.request_info -> string
val host : Ocsigen_request_info.request_info -> string option
val ssl : Ocsigen_request_info.request_info -> bool
val port_from_host_field : Ocsigen_request_info.request_info -> int option
val server_port : Ocsigen_request_info.request_info -> int
val full_path : Ocsigen_request_info.request_info -> string list
val get_params_string : Ocsigen_request_info.request_info -> string option
val client :
Ocsigen_request_info.request_info -> Ocsigen_http_com.connection
val nb_tries : Ocsigen_request_info.request_info -> int
val sub_path : Ocsigen_request_info.request_info -> string list
val content_length : Ocsigen_request_info.request_info -> int64 option
val content_type_string :
Ocsigen_request_info.request_info -> string option
val remote_port : Ocsigen_request_info.request_info -> int
val sub_path_string : Ocsigen_request_info.request_info -> string
val full_path_string : Ocsigen_request_info.request_info -> string
val remote_inet_addr : Ocsigen_request_info.request_info -> Unix.inet_addr
val forward_ip : Ocsigen_request_info.request_info -> string list
val remote_ip_parsed :
Ocsigen_request_info.request_info -> Ipaddr.t Stdlib.Lazy.t
val content_type :
Ocsigen_request_info.request_info ->
((string * string) * (string * string) list) option
val origin :
Ocsigen_request_info.request_info -> string option Stdlib.Lazy.t
val access_control_request_method :
Ocsigen_request_info.request_info -> string option Stdlib.Lazy.t
val access_control_request_headers :
Ocsigen_request_info.request_info -> string list option Stdlib.Lazy.t
val request_cache : Ocsigen_request_info.request_info -> Polytables.t
val files :
Ocsigen_request_info.request_info ->
(string option * Stdlib.Int64.t option ->
(string * Ocsigen_request_info.file_info) list Lwt.t)
option
val original_full_path : Ocsigen_request_info.request_info -> string list
val cookies :
Ocsigen_request_info.request_info ->
string Ocsigen_cookies.CookiesTable.t Stdlib.Lazy.t
val post_params :
Ocsigen_request_info.request_info ->
(string option * Stdlib.Int64.t option -> (string * string) list Lwt.t)
option
val get_params :
Ocsigen_request_info.request_info -> (string * string) list Stdlib.Lazy.t
val initial_get_params :
Ocsigen_request_info.request_info -> (string * string) list Stdlib.Lazy.t
val original_full_path_string : Ocsigen_request_info.request_info -> string
val timeofday : Ocsigen_request_info.request_info -> float
val accept_language :
Ocsigen_request_info.request_info ->
(string * float option) list Stdlib.Lazy.t
val accept_encoding :
Ocsigen_request_info.request_info ->
(string option * float option) list Stdlib.Lazy.t
val accept :
Ocsigen_request_info.request_info -> Http_headers.accept Stdlib.Lazy.t
val connection_closed : Ocsigen_request_info.request_info -> unit Lwt.t
end`