Quick use
Sourceval get : ?headers:(string * string) list -> string -> string Sourceval post : ?headers:(string * string) list -> string -> string -> string Types
Helpers
Methods
Sourcetype method_ = [ | `GET| `POST| `PUT| `DELETE| `HEAD| `CONNECT| `OPTIONS| `TRACE| `PATCH| `Method of string
] Status codes
Sourcetype successful = [ | `OK| `Created| `Accepted| `Non_Authoritative_Information| `No_Content| `Reset_Content| `Partial_Content
] Sourcetype redirection = [ | `Multiple_Choices| `Moved_Permanently| `Found| `See_Other| `Not_Modified| `Temporary_Redirect| `Permanent_Redirect
] Sourcetype client_error = [ | `Bad_Request| `Unauthorized| `Payment_Required| `Forbidden| `Not_Found| `Method_Not_Allowed| `Not_Acceptable| `Proxy_Authentication_Required| `Request_Timeout| `Conflict| `Gone| `Length_Required| `Precondition_Failed| `Payload_Too_Large| `URI_Too_Long| `Unsupported_Media_Type| `Range_Not_Satisfiable| `Expectation_Failed| `Misdirected_Request| `Too_Early| `Upgrade_Required| `Precondition_Required| `Too_Many_Requests| `Unavailable_For_Legal_Reasons
] Sourcetype server_error = [ | `Internal_Server_Error| `Not_Implemented| `Bad_Gateway| `Service_Unavailable| `Gateway_Timeout| `HTTP_Version_Not_Supported
] Requests
Sourceval request :
?method_:[< method_ ] ->
?headers:(string * string) list ->
?body:string ->
string ->
request Responses
Streams
WebSockets
Sourcetype text_or_binary = [ | `Text| `Binary
] Sourcetype end_of_message = [ | `End_of_message| `Continues
]