Module SFHttp

module SFHttp: sig .. end

Online documentation for the Http class

type http_method = 
| Get
| Post
| Head
| Put
| Delete
type status = 
| Ok
| Created
| Accepted
| NoContent
| ResetContent
| PartialContent
| MultipleChoices
| MovedPermanently
| MovedTemporarily
| NotModified
| BadRequest
| Unauthorized
| Forbidden
| NotFound
| RangeNotSatisfiable
| InternalServerError
| NotImplemented
| BadGateway
| ServiceNotAvailable
| GatewayTimeout
| VersionNotSupported
| InvalidResponse
| ConnectionFailed
module Request: sig .. end
module Response: sig .. end
type t 
val create : unit -> t
val destroy : t -> unit
val setHost : t -> host:string -> ?port:int -> unit -> unit
val sendRequest : t ->
request:Request.t -> ?timeout:SFTime.t -> unit -> Response.t