package horned_worm

  1. Overview
  2. Docs

Send an HTTP request with an arbitrary body The request is sent as-is.

Send an HTTP request with arbitrary method and a body Infers the transfer encoding

Send an HTTP GET request

Send an HTTP HEAD request

Send an HTTP DELETE request

val post : ?interrupt:unit Async_kernel.Deferred.t -> ?ssl_config:Conduit_async.V2.Ssl.Config.t -> ?headers:Cohttp.Header.t -> ?chunked:bool -> ?body:Cohttp_async.Body.t -> Uri.t -> (Cohttp.Response.t * Cohttp_async.Body.t) Async_kernel.Deferred.t

Send an HTTP POST request. chunked encoding is off by default as not many servers support it

Send an HTTP PUT request. chunked encoding is off by default as not many servers support it

Send an HTTP PATCH request. chunked encoding is off by default as not many servers support it

val post_form : ?interrupt:unit Async_kernel.Deferred.t -> ?ssl_config:Conduit_async.V2.Ssl.Config.t -> ?headers:Cohttp.Header.t -> params:(string * string list) list -> Uri.t -> (Cohttp_async.Response.t * Cohttp_async.Body.t) Async_kernel.Deferred.t

Send an HTTP POST request in form format