Module Httpun_client

val (let>) : 'a Lwt.t -> ('a -> 'b Lwt.t) -> 'b Lwt.t
val (let>?) : ('a, 'b) Stdlib.result Lwt.t -> ('a -> ('c, 'b) Stdlib.result Lwt.t) -> ('c, 'b) Stdlib.result Lwt.t
val timeout_fail : (('a, [> `interval_timeout of float ]) Stdlib.result -> unit) -> float option -> unit Lwt.t
val stream_handler_lwt : ?timeout:float -> ('a -> string -> [< `continue of 'a | `stop of ('a, 'b) Stdlib.result ] Lwt.t) -> (('a, [> 'b Httpun_common.stream_error ]) Stdlib.result -> unit) -> 'a -> Httpun.Response.t -> Httpun.Body.Reader.t -> unit
val perform : ?msg:string -> ?meth: [> `CONNECT | `DELETE | `GET | `HEAD | `OPTIONS | `Other of string | `PATCH | `POST | `PUT | `TRACE ] -> ?content:string -> ?content_type:Httpun.Headers.value -> ?headers:(Httpun.Headers.name * Httpun.Headers.value) list -> ?timeout:float -> ((('a, [> `exn of exn | `invalid_url of string | `msg of string | `timeout of float ] as 'b) Stdlib.result -> unit) -> Httpun.Client_connection.response_handler) -> string -> ('a, 'b) Stdlib.result Lwt.t
val call : ?msg:string -> ?meth: [> `CONNECT | `DELETE | `GET | `HEAD | `OPTIONS | `Other of string | `PATCH | `POST | `PUT | `TRACE ] -> ?content:string -> ?content_type:Httpun.Headers.value -> ?headers:(Httpun.Headers.name * Httpun.Headers.value) list -> ?timeout:float -> string -> (string, [> `exn of exn | `http of int * string | `invalid_url of string | `msg of string | `timeout of float ]) Stdlib.result Lwt.t
val stream : ?meth: [> `CONNECT | `DELETE | `GET | `HEAD | `OPTIONS | `Other of string | `PATCH | `POST | `PUT | `TRACE ] -> ?content:string -> ?content_type:Httpun.Headers.value -> ?headers:(Httpun.Headers.name * Httpun.Headers.value) list -> ?timeout:float -> ?interval_timeout:float -> url:string -> ('a -> string -> [< `continue of 'a | `stop of ('a, 'b) Stdlib.result ] Lwt.t) -> 'a -> ('a, [> `cb of 'b | `exn of exn | `http of int * string | `interval_timeout of float | `invalid_url of string | `msg of string | `timeout of float ]) Stdlib.result Lwt.t