package sfml

  1. Overview
  2. Docs
type http_method =
  1. | Get
  2. | Post
  3. | Head
  4. | Put
  5. | Delete
type status =
  1. | Ok
  2. | Created
  3. | Accepted
  4. | NoContent
  5. | ResetContent
  6. | PartialContent
  7. | MultipleChoices
  8. | MovedPermanently
  9. | MovedTemporarily
  10. | NotModified
  11. | BadRequest
  12. | Unauthorized
  13. | Forbidden
  14. | NotFound
  15. | RangeNotSatisfiable
  16. | InternalServerError
  17. | NotImplemented
  18. | BadGateway
  19. | ServiceNotAvailable
  20. | GatewayTimeout
  21. | VersionNotSupported
  22. | InvalidResponse
  23. | 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