module Request:sig..end
type t
request_rec structure.val connection : t -> Netcgi_apache.Apache.Connection.trequest_rec connection field.val server : t -> Netcgi_apache.Apache.Server.trequest_rec server field.val next : t -> trequest_rec next field.Not_found if NULL.val prev : t -> trequest_rec prev field.Not_found if NULL.val main : t -> trequest_rec main field.Not_found if NULL.val the_request : t -> stringrequest_rec the_request field.Not_found if NULL.val assbackwards : t -> boolrequest_rec assbackwards field; true if HTTP/0.9,
"simple" request.val header_only : t -> boolrequest_rec header_only field. It is true when the
request method is HEAD.val protocol : t -> stringrequest_rec protocol field.Not_found if NULL.val proto_num : t -> intrequest_rec proto_num field. Number version of
protocol; 1.1 = 1001val hostname : t -> stringrequest_rec hostname field -- hostname to which the
request was made.Not_found if NULL.val request_time : t -> floatrequest_rec request_time field.val status_line : t -> stringrequest_rec status_line field.Not_found if NULL.val set_status_line : t -> string -> unitrequest_rec status_line field.val status : t -> intrequest_rec status field.val set_status : t -> int -> unitrequest_rec status field.val method_name : t -> stringrequest_rec method field.val method_number : t ->
[ `CONNECT
| `COPY
| `DELETE
| `GET
| `INVALID
| `LOCK
| `MKCOL
| `MOVE
| `OPTIONS
| `PATCH
| `POST
| `PROPFIND
| `PROPPATCH
| `PUT
| `TRACE
| `UNLOCK ]request_rec method_number field (given symbolically
instead of a number).val headers_in : t -> Netcgi_apache.Apache.Table.trequest_rec headers_in field.val headers_out : t -> Netcgi_apache.Apache.Table.trequest_rec headers_out field.val err_headers_out : t -> Netcgi_apache.Apache.Table.trequest_rec err_headers_out field.val subprocess_env : t -> Netcgi_apache.Apache.Table.trequest_rec subprocess_env field.val notes : t -> Netcgi_apache.Apache.Table.trequest_rec notes field.val content_type : t -> stringrequest_rec content_type field.Not_found if NULL.val set_content_type : t -> string -> unitrequest_rec content_type field.val uri : t -> stringrequest_rec uri field.Not_found if NULL.val port : t -> intval set_uri : t -> string -> unitrequest_rec uri field.val filename : t -> stringrequest_rec filename field.Not_found if NULL.val set_filename : t -> string -> unitrequest_rec filename field.val path_info : t -> stringrequest_rec path_info field.Not_found if NULL.val set_path_info : t -> string -> unitrequest_rec path_info field.val args : t -> stringrequest_rec args field.Not_found if NULL.val set_args : t -> string -> unitrequest_rec args field.val finfo : t -> Unix.stats optionrequest_rec finfo field.type read_policy =
| |
NO_BODY |
(* |
Send 413 error if message has any body
| *) |
| |
CHUNKED_ERROR |
(* |
Send 411 error if body without Content-Length
| *) |
| |
CHUNKED_DECHUNK |
(* |
If chunked, remove the chunks for me.
| *) |
| |
CHUNKED_PASS |
(* |
Pass the chunks to me without removal.
| *) |
setup_client_block if the request message
indicates a body.val setup_client_block : t ->
read_policy -> unitNetcgi_common.HTTP in case of problems.val should_client_block : t -> boolval get_client_block : t -> stringNetcgi_common.HTTP in case of reading error.val get_client_block_buf : t -> Bytes.t -> int -> int -> intget_client_block_buf r buf ofs len read a chunk of data
and puts it in buf.[ofs .. ofs+len-1]. The return value
i is the number of bytes actually read -- thus only
buf.[ofs .. ofs+i-1] is meaningful.Netcgi_common.HTTP in case of reading error.val discard_request_body : t -> unitNetcgi_common.HTTP in case of problems.val user : t -> stringNot_found if NULL.val auth_type : t -> string
val note_auth_failure : t -> unitval note_basic_auth_failure : t -> unitval note_digest_auth_failure : t -> unitval get_basic_auth_pw : t -> string optionNetcgi_common.HTTP in case of problems.val internal_redirect : string -> t -> unituri.val internal_redirect_handler : string -> t -> unituri using handler specified
by r.val send_http_header : t -> unitset_status and set_content_type
respectively.val rflush : t -> unitEnd_of_file if it is not possible.val print_char : t -> char -> unitval print_string : t -> string -> unitval output : t -> Bytes.t -> int -> int -> intoutput r s ofs len send s[ofs .. len-1] back to the
client. Returns the number of bytes actually written, which
is smaller than the number of bytes in the string if there
was a failure.val print_int : t -> int -> unitval print_float : t -> float -> unitval print_newline : t -> unitval print_endline : t -> string -> unitval register_cleanup : t -> (unit -> unit) -> unit