package http_async

  1. Overview
  2. Docs
type informational = [
  1. | `Continue
  2. | `Switching_protocols
  3. | `Processing
  4. | `Early_hints
]
val sexp_of_informational : informational -> Sexplib0.Sexp.t
val informational_of_sexp : Sexplib0.Sexp.t -> informational
val __informational_of_sexp__ : Sexplib0.Sexp.t -> informational
val compare_informational : informational -> informational -> int
val hash_fold_informational : Base.Hash.state -> informational -> Base.Hash.state
val hash_informational : informational -> Base.Hash.hash_value
type success = [
  1. | `Ok
  2. | `Created
  3. | `Accepted
  4. | `Non_authoritative_information
  5. | `No_content
  6. | `Reset_content
  7. | `Partial_content
  8. | `Multi_status
  9. | `Already_reported
  10. | `Im_used
]
val sexp_of_success : success -> Sexplib0.Sexp.t
val success_of_sexp : Sexplib0.Sexp.t -> success
val __success_of_sexp__ : Sexplib0.Sexp.t -> success
val compare_success : success -> success -> int
val hash_fold_success : Base.Hash.state -> success -> Base.Hash.state
val hash_success : success -> Base.Hash.hash_value
type redirection = [
  1. | `Multiple_choices
  2. | `Moved_permanently
  3. | `Found
  4. | `See_other
  5. | `Not_modified
  6. | `Use_proxy
  7. | `Temporary_redirect
  8. | `Permanent_redirect
]
val sexp_of_redirection : redirection -> Sexplib0.Sexp.t
val redirection_of_sexp : Sexplib0.Sexp.t -> redirection
val __redirection_of_sexp__ : Sexplib0.Sexp.t -> redirection
val compare_redirection : redirection -> redirection -> int
val hash_fold_redirection : Base.Hash.state -> redirection -> Base.Hash.state
val hash_redirection : redirection -> Base.Hash.hash_value
type client_error = [
  1. | `Bad_request
  2. | `Unauthorized
  3. | `Payment_required
  4. | `Forbidden
  5. | `Not_found
  6. | `Method_not_allowed
  7. | `Not_acceptable
  8. | `Proxy_authentication_required
  9. | `Request_timeout
  10. | `Conflict
  11. | `Gone
  12. | `Length_required
  13. | `Precondition_failed
  14. | `Payload_too_large
  15. | `Uri_too_long
  16. | `Unsupported_media_type
  17. | `Range_not_satisfiable
  18. | `Expectation_failed
  19. | `Misdirected_request
  20. | `Unprocessable_entity
  21. | `Locked
  22. | `Failed_dependency
  23. | `Too_early
  24. | `Upgrade_required
  25. | `Precondition_required
  26. | `Too_many_requests
  27. | `Request_header_fields_too_large
]
val sexp_of_client_error : client_error -> Sexplib0.Sexp.t
val client_error_of_sexp : Sexplib0.Sexp.t -> client_error
val __client_error_of_sexp__ : Sexplib0.Sexp.t -> client_error
val compare_client_error : client_error -> client_error -> int
val hash_fold_client_error : Base.Hash.state -> client_error -> Base.Hash.state
val hash_client_error : client_error -> Base.Hash.hash_value
type server_error = [
  1. | `Internal_server_error
  2. | `Not_implemented
  3. | `Bad_gateway
  4. | `Service_unavailable
  5. | `Gateway_timeout
  6. | `Http_version_not_supported
  7. | `Variant_also_negotiates
  8. | `Insufficient_storage
  9. | `Loop_detected
  10. | `Not_extended
  11. | `Network_authentication_required
]
val sexp_of_server_error : server_error -> Sexplib0.Sexp.t
val server_error_of_sexp : Sexplib0.Sexp.t -> server_error
val __server_error_of_sexp__ : Sexplib0.Sexp.t -> server_error
val compare_server_error : server_error -> server_error -> int
val hash_fold_server_error : Base.Hash.state -> server_error -> Base.Hash.state
val hash_server_error : server_error -> Base.Hash.hash_value
val sexp_of_t : t -> Sexplib0.Sexp.t
val t_of_sexp : Sexplib0.Sexp.t -> t
val __t_of_sexp__ : Sexplib0.Sexp.t -> t
val compare : t -> t -> int
include Ppx_hash_lib.Hashable.S with type t := t
val hash_fold_t : Base.Hash.state -> t -> Base.Hash.state
val hash : t -> Base.Hash.hash_value
val to_int : t -> int
val to_string : t -> string
val to_reason_phrase : t -> string
OCaml

Innovation. Community. Security.