package scgi

  1. Overview
  2. Docs
type t

SCGI request

type header = [
  1. | `Http_accept_charset
  2. | `Http_accept_language
  3. | `Http_accept_encoding
  4. | `Http_referer
  5. | `Http_accept
  6. | `Http_content_type
  7. | `Http_content_md5
  8. | `Http_user_agent
  9. | `Http_origin
  10. | `Http_cache_control
  11. | `Http_content_length
  12. | `Http_connection
  13. | `Http_host
  14. | `Http_authorization
  15. | `Http_date
  16. | `Http_x_forwarded_proto
  17. | `Http_x_forwarded_port
  18. | `Http_x_forwarded_for
  19. | `Server_name
  20. | `Server_port
  21. | `Remote_port
  22. | `Remote_addr
  23. | `Server_protocol
  24. | `Other of string
]
val make : Http_method.t -> Uri.t -> Headers.t -> string -> t
val of_stream : char Lwt_stream.t -> t Lwt.t
val to_string : t -> string
val content_length : t -> int
val meth : t -> Http_method.t
val uri : t -> Uri.t
val path : t -> string
val contents : t -> string
val param : t -> string -> string option
val param_exn : ?default:string -> t -> string -> string
val params_get : t -> (string * string) list
val params_post : t -> (string * string) list
val header : t -> header -> string list
val to_debug_string : t -> string
OCaml

Innovation. Community. Security.