package b0

  1. Overview
  2. Docs
Software construction and deployment kit

Install

Dune Dependency

Authors

Maintainers

Sources

b0-0.0.1.tbz
sha256=dba2fc571f39f3b8e87ee55c77bdec7ec6a5ddc7d99b8b20aeda848af546be04
md5=51ee1d66acc4d7f87bdceac1341b7711

doc/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.Arg.env -> unit -> B00_std.Cmd.t Cmdliner.Term.t

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

which is looked up in the PATH or in the environment variable B0_CURL.

val find_curl : ?search:B00_std.Fpath.t list -> curl:B00_std.Cmd.t -> unit -> (t, string) Stdlib.result
OCaml

Innovation. Community. Security.