package ocamlnet

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type protocol_version = int * int
type protocol_attribute = [
  1. | `Secure_https
]
type protocol = [
  1. | `Http of protocol_version * protocol_attribute list
  2. | `Other
]
val string_of_protocol : protocol -> string
val protocol_of_string : string -> protocol
type http_status = [
  1. | `Accepted
  2. | `Bad_gateway
  3. | `Bad_request
  4. | `Conflict
  5. | `Continue
  6. | `Created
  7. | `Expectation_failed
  8. | `Forbidden
  9. | `Found
  10. | `Gateway_timeout
  11. | `Gone
  12. | `Http_version_not_supported
  13. | `Internal_server_error
  14. | `Length_required
  15. | `Method_not_allowed
  16. | `Moved_permanently
  17. | `Multiple_choices
  18. | `No_content
  19. | `Non_authoritative
  20. | `Not_acceptable
  21. | `Not_found
  22. | `Not_implemented
  23. | `Not_modified
  24. | `Ok
  25. | `Partial_content
  26. | `Payment_required
  27. | `Precondition_failed
  28. | `Proxy_auth_required
  29. | `Request_entity_too_large
  30. | `Request_timeout
  31. | `Request_uri_too_long
  32. | `Requested_range_not_satisfiable
  33. | `Reset_content
  34. | `See_other
  35. | `Service_unavailable
  36. | `Switching_protocols
  37. | `Temporary_redirect
  38. | `Unauthorized
  39. | `Unsupported_media_type
  40. | `Use_proxy
]
val int_of_http_status : http_status -> int
val http_status_of_int : int -> http_status
val string_of_http_status : http_status -> string
val base_code : int -> int
type http_method = string * string
type cache_control_token = [
  1. | `Extension of string * string option
  2. | `Max_age of int
  3. | `Max_stale of int option
  4. | `Min_fresh of int
  5. | `Must_revalidate
  6. | `No_cache of string list
  7. | `No_store
  8. | `No_transform
  9. | `Only_if_cached
  10. | `Private of string list
  11. | `Proxy_revalidate
  12. | `Public
  13. | `S_maxage of int
]
type etag = [
  1. | `Strong of string
  2. | `Weak of string
]
val weak_validator_match : etag -> etag -> bool
val strong_validator_match : etag -> etag -> bool
exception Bad_header_field of string
val status_of_cgi_header : http_header -> int * string
val decode_query : string -> string * string
val split_host_port : string -> string * int option
val uripath_encode : string -> string
val uripath_decode : string -> string
module Header : sig ... end
type transport_layer_id = int
val new_trans_id : unit -> transport_layer_id
val http_trans_id : transport_layer_id
val https_trans_id : transport_layer_id
val spnego_trans_id : transport_layer_id
val proxy_only_trans_id : transport_layer_id
type match_result = [
  1. | `Accept of string * string option
  2. | `Accept_reroute of string * string option * transport_layer_id
  3. | `Reject
  4. | `Reroute of string * transport_layer_id
]
module type HTTP_CLIENT_MECHANISM = sig ... end
val rev_split : (char -> bool) -> string -> string list
val qstring_of_value : string -> string
OCaml

Innovation. Community. Security.