package dream-httpaf
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=05bc7f6aff94893c151f3a5bcdee3328920c69b3763fac49ba27348dc7745901
md5=de6f6908ae899c9e85f2c751a0263932
doc/dream-httpaf.dream-h2/Dream_h2/Status/index.html
Module Dream_h2.Status
Source
include module type of Httpaf.Status
with type client_error := Httpaf.Status.client_error
and type standard := Httpaf.Status.standard
and type t := Httpaf.Status.t
The 1xx (Informational) class of status code indicates an interim response for communicating connection status or request progress prior to completing the requested action and sending a final response.
See RFC7231§6.2 for more details.
The 2xx (Successful) class of status code indicates that the client's request was successfully received, understood, and accepted.
See RFC7231§6.3 for more details.
type redirection = [
| `Multiple_choices
| `Moved_permanently
| `Found
| `See_other
| `Not_modified
| `Use_proxy
| `Temporary_redirect
]
The 3xx (Redirection) class of status code indicates that further action needs to be taken by the user agent in order to fulfill the request.
See RFC7231§6.4 for more details.
type server_error = [
| `Internal_server_error
| `Not_implemented
| `Bad_gateway
| `Gateway_timeout
| `Http_version_not_supported
| `Network_authentication_required
]
The 5xx (Server Error) class of status code indicates that the server is aware that it has erred or is incapable of performing the requested method.
See RFC7231§6.6 for more details.
val default_reason_phrase :
[< `Accepted
| `Bad_gateway
| `Bad_request
| `Conflict
| `Continue
| `Created
| `Enhance_your_calm
| `Expectation_failed
| `Forbidden
| `Found
| `Gateway_timeout
| `Gone
| `Http_version_not_supported
| `I_m_a_teapot
| `Internal_server_error
| `Length_required
| `Method_not_allowed
| `Misdirected_request
| `Moved_permanently
| `Multiple_choices
| `Network_authentication_required
| `No_content
| `Non_authoritative_information
| `Not_acceptable
| `Not_found
| `Not_implemented
| `Not_modified
| `OK
| `Partial_content
| `Payload_too_large
| `Payment_required
| `Precondition_failed
| `Precondition_required
| `Proxy_authentication_required
| `Range_not_satisfiable
| `Request_header_fields_too_large
| `Request_timeout
| `Reset_content
| `See_other
| `Service_unavailable
| `Switching_protocols
| `Temporary_redirect
| `Too_many_requests
| `Unauthorized
| `Unsupported_media_type
| `Upgrade_required
| `Uri_too_long
| `Use_proxy ] ->
string
val to_code :
[< `Accepted
| `Bad_gateway
| `Bad_request
| `Code of int
| `Conflict
| `Continue
| `Created
| `Enhance_your_calm
| `Expectation_failed
| `Forbidden
| `Found
| `Gateway_timeout
| `Gone
| `Http_version_not_supported
| `I_m_a_teapot
| `Internal_server_error
| `Length_required
| `Method_not_allowed
| `Misdirected_request
| `Moved_permanently
| `Multiple_choices
| `Network_authentication_required
| `No_content
| `Non_authoritative_information
| `Not_acceptable
| `Not_found
| `Not_implemented
| `Not_modified
| `OK
| `Partial_content
| `Payload_too_large
| `Payment_required
| `Precondition_failed
| `Precondition_required
| `Proxy_authentication_required
| `Range_not_satisfiable
| `Request_header_fields_too_large
| `Request_timeout
| `Reset_content
| `See_other
| `Service_unavailable
| `Switching_protocols
| `Temporary_redirect
| `Too_many_requests
| `Unauthorized
| `Unsupported_media_type
| `Upgrade_required
| `Uri_too_long
| `Use_proxy ] ->
int
val is_informational :
[< `Accepted
| `Bad_gateway
| `Bad_request
| `Code of int
| `Conflict
| `Continue
| `Created
| `Enhance_your_calm
| `Expectation_failed
| `Forbidden
| `Found
| `Gateway_timeout
| `Gone
| `Http_version_not_supported
| `I_m_a_teapot
| `Internal_server_error
| `Length_required
| `Method_not_allowed
| `Misdirected_request
| `Moved_permanently
| `Multiple_choices
| `Network_authentication_required
| `No_content
| `Non_authoritative_information
| `Not_acceptable
| `Not_found
| `Not_implemented
| `Not_modified
| `OK
| `Partial_content
| `Payload_too_large
| `Payment_required
| `Precondition_failed
| `Precondition_required
| `Proxy_authentication_required
| `Range_not_satisfiable
| `Request_header_fields_too_large
| `Request_timeout
| `Reset_content
| `See_other
| `Service_unavailable
| `Switching_protocols
| `Temporary_redirect
| `Too_many_requests
| `Unauthorized
| `Unsupported_media_type
| `Upgrade_required
| `Uri_too_long
| `Use_proxy ] ->
bool
val is_successful :
[< `Accepted
| `Bad_gateway
| `Bad_request
| `Code of int
| `Conflict
| `Continue
| `Created
| `Enhance_your_calm
| `Expectation_failed
| `Forbidden
| `Found
| `Gateway_timeout
| `Gone
| `Http_version_not_supported
| `I_m_a_teapot
| `Internal_server_error
| `Length_required
| `Method_not_allowed
| `Misdirected_request
| `Moved_permanently
| `Multiple_choices
| `Network_authentication_required
| `No_content
| `Non_authoritative_information
| `Not_acceptable
| `Not_found
| `Not_implemented
| `Not_modified
| `OK
| `Partial_content
| `Payload_too_large
| `Payment_required
| `Precondition_failed
| `Precondition_required
| `Proxy_authentication_required
| `Range_not_satisfiable
| `Request_header_fields_too_large
| `Request_timeout
| `Reset_content
| `See_other
| `Service_unavailable
| `Switching_protocols
| `Temporary_redirect
| `Too_many_requests
| `Unauthorized
| `Unsupported_media_type
| `Upgrade_required
| `Uri_too_long
| `Use_proxy ] ->
bool
val is_redirection :
[< `Accepted
| `Bad_gateway
| `Bad_request
| `Code of int
| `Conflict
| `Continue
| `Created
| `Enhance_your_calm
| `Expectation_failed
| `Forbidden
| `Found
| `Gateway_timeout
| `Gone
| `Http_version_not_supported
| `I_m_a_teapot
| `Internal_server_error
| `Length_required
| `Method_not_allowed
| `Misdirected_request
| `Moved_permanently
| `Multiple_choices
| `Network_authentication_required
| `No_content
| `Non_authoritative_information
| `Not_acceptable
| `Not_found
| `Not_implemented
| `Not_modified
| `OK
| `Partial_content
| `Payload_too_large
| `Payment_required
| `Precondition_failed
| `Precondition_required
| `Proxy_authentication_required
| `Range_not_satisfiable
| `Request_header_fields_too_large
| `Request_timeout
| `Reset_content
| `See_other
| `Service_unavailable
| `Switching_protocols
| `Temporary_redirect
| `Too_many_requests
| `Unauthorized
| `Unsupported_media_type
| `Upgrade_required
| `Uri_too_long
| `Use_proxy ] ->
bool
val is_client_error :
[< `Accepted
| `Bad_gateway
| `Bad_request
| `Code of int
| `Conflict
| `Continue
| `Created
| `Enhance_your_calm
| `Expectation_failed
| `Forbidden
| `Found
| `Gateway_timeout
| `Gone
| `Http_version_not_supported
| `I_m_a_teapot
| `Internal_server_error
| `Length_required
| `Method_not_allowed
| `Misdirected_request
| `Moved_permanently
| `Multiple_choices
| `Network_authentication_required
| `No_content
| `Non_authoritative_information
| `Not_acceptable
| `Not_found
| `Not_implemented
| `Not_modified
| `OK
| `Partial_content
| `Payload_too_large
| `Payment_required
| `Precondition_failed
| `Precondition_required
| `Proxy_authentication_required
| `Range_not_satisfiable
| `Request_header_fields_too_large
| `Request_timeout
| `Reset_content
| `See_other
| `Service_unavailable
| `Switching_protocols
| `Temporary_redirect
| `Too_many_requests
| `Unauthorized
| `Unsupported_media_type
| `Upgrade_required
| `Uri_too_long
| `Use_proxy ] ->
bool
val is_server_error :
[< `Accepted
| `Bad_gateway
| `Bad_request
| `Code of int
| `Conflict
| `Continue
| `Created
| `Enhance_your_calm
| `Expectation_failed
| `Forbidden
| `Found
| `Gateway_timeout
| `Gone
| `Http_version_not_supported
| `I_m_a_teapot
| `Internal_server_error
| `Length_required
| `Method_not_allowed
| `Misdirected_request
| `Moved_permanently
| `Multiple_choices
| `Network_authentication_required
| `No_content
| `Non_authoritative_information
| `Not_acceptable
| `Not_found
| `Not_implemented
| `Not_modified
| `OK
| `Partial_content
| `Payload_too_large
| `Payment_required
| `Precondition_failed
| `Precondition_required
| `Proxy_authentication_required
| `Range_not_satisfiable
| `Request_header_fields_too_large
| `Request_timeout
| `Reset_content
| `See_other
| `Service_unavailable
| `Switching_protocols
| `Temporary_redirect
| `Too_many_requests
| `Unauthorized
| `Unsupported_media_type
| `Upgrade_required
| `Uri_too_long
| `Use_proxy ] ->
bool
val is_error :
[< `Accepted
| `Bad_gateway
| `Bad_request
| `Code of int
| `Conflict
| `Continue
| `Created
| `Enhance_your_calm
| `Expectation_failed
| `Forbidden
| `Found
| `Gateway_timeout
| `Gone
| `Http_version_not_supported
| `I_m_a_teapot
| `Internal_server_error
| `Length_required
| `Method_not_allowed
| `Misdirected_request
| `Moved_permanently
| `Multiple_choices
| `Network_authentication_required
| `No_content
| `Non_authoritative_information
| `Not_acceptable
| `Not_found
| `Not_implemented
| `Not_modified
| `OK
| `Partial_content
| `Payload_too_large
| `Payment_required
| `Precondition_failed
| `Precondition_required
| `Proxy_authentication_required
| `Range_not_satisfiable
| `Request_header_fields_too_large
| `Request_timeout
| `Reset_content
| `See_other
| `Service_unavailable
| `Switching_protocols
| `Temporary_redirect
| `Too_many_requests
| `Unauthorized
| `Unsupported_media_type
| `Upgrade_required
| `Uri_too_long
| `Use_proxy ] ->
bool
val to_string :
[< `Accepted
| `Bad_gateway
| `Bad_request
| `Code of int
| `Conflict
| `Continue
| `Created
| `Enhance_your_calm
| `Expectation_failed
| `Forbidden
| `Found
| `Gateway_timeout
| `Gone
| `Http_version_not_supported
| `I_m_a_teapot
| `Internal_server_error
| `Length_required
| `Method_not_allowed
| `Misdirected_request
| `Moved_permanently
| `Multiple_choices
| `Network_authentication_required
| `No_content
| `Non_authoritative_information
| `Not_acceptable
| `Not_found
| `Not_implemented
| `Not_modified
| `OK
| `Partial_content
| `Payload_too_large
| `Payment_required
| `Precondition_failed
| `Precondition_required
| `Proxy_authentication_required
| `Range_not_satisfiable
| `Request_header_fields_too_large
| `Request_timeout
| `Reset_content
| `See_other
| `Service_unavailable
| `Switching_protocols
| `Temporary_redirect
| `Too_many_requests
| `Unauthorized
| `Unsupported_media_type
| `Upgrade_required
| `Uri_too_long
| `Use_proxy ] ->
string
val pp_hum :
Format.formatter ->
[< `Accepted
| `Bad_gateway
| `Bad_request
| `Code of int
| `Conflict
| `Continue
| `Created
| `Enhance_your_calm
| `Expectation_failed
| `Forbidden
| `Found
| `Gateway_timeout
| `Gone
| `Http_version_not_supported
| `I_m_a_teapot
| `Internal_server_error
| `Length_required
| `Method_not_allowed
| `Misdirected_request
| `Moved_permanently
| `Multiple_choices
| `Network_authentication_required
| `No_content
| `Non_authoritative_information
| `Not_acceptable
| `Not_found
| `Not_implemented
| `Not_modified
| `OK
| `Partial_content
| `Payload_too_large
| `Payment_required
| `Precondition_failed
| `Precondition_required
| `Proxy_authentication_required
| `Range_not_satisfiable
| `Request_header_fields_too_large
| `Request_timeout
| `Reset_content
| `See_other
| `Service_unavailable
| `Switching_protocols
| `Temporary_redirect
| `Too_many_requests
| `Unauthorized
| `Unsupported_media_type
| `Upgrade_required
| `Uri_too_long
| `Use_proxy ] ->
unit