package b0

  1. Overview
  2. Docs
Software construction and deployment kit

Install

Dune Dependency

Authors

Maintainers

Sources

b0-0.0.5.tbz
sha512=00a6868b4dfa34565d0141b335622a81a0e8d5b9e3c6dfad025dabfa3df2db2a1302b492953bbbce30c3a4406c324fcec25250a00b38f6d18a69e15605e3b07e

doc/b0_b00_kit/B00_http/Httpr/index.html

Module B00_http.Httpr

HTTP requestors.

Performing requests

type t

The type for HTTP requestors.

val perform : ?insecure:bool -> ?follow:bool -> t -> Http.req -> (Http.resp, string) Stdlib.result

perform httpr r performs request r via httpr. If follow is true (default) HTTP redirects for GET and HEAD requests that return 301, 302, 303, 305 or 307 are automatically followed. If insecure is true (defaults to false) TLS server certificates are not checked.

The response's Http.resp_headers are lowercased.

curl requestor

val curl : ?docs:string -> ?env:Cmdliner.Cmd.Env.info -> unit -> B0_std.Cmd.t Cmdliner.Term.t

curl is a cli interface for specifying the curl command line tool.

val get_curl : ?search:B0_std.Fpath.t list -> ?curl:B0_std.Cmd.t -> unit -> (t, string) Stdlib.result

get_curl () looks for curl (defaults to "curl") in search.

OCaml

Innovation. Community. Security.