package piaf

  1. Overview
  2. Docs
type t = {
  1. follow_redirects : bool;
    (*

    whether to follow redirects

    *)
  2. max_redirects : int;
    (*

    max redirects to follow. Could probably be rolled up into one option

    *)
  3. allow_insecure : bool;
    (*

    Wether to allow insecure server connections when using SSL

    *)
  4. max_http_version : Versions.HTTP.t;
    (*

    Use this as the highest HTTP version when sending requests

    *)
  5. h2c_upgrade : bool;
    (*

    Send an upgrade to `h2c` (HTTP/2 over TCP) request to the server. `http2_prior_knowledge` below ignores this option.

    *)
  6. http2_prior_knowledge : bool;
    (*

    Assume HTTP/2 prior knowledge -- don't use HTTP/1.1 Upgrade when communicating with "http" URIs, default to HTTP/2.0 when we can't agree to an ALPN protocol and communicating with "https" URIs.

    *)
  7. cacert : string option;
    (*

    The path to a CA certificates file in PEM format

    *)
  8. capath : string option;
    (*

    The path to a directory which contains CA certificates in PEM format

    *)
  9. min_tls_version : Versions.TLS.t;
  10. max_tls_version : Versions.TLS.t;
  11. tcp_nodelay : bool;
  12. connect_timeout : float;
  13. buffer_size : int;
    (*

    Buffer size used for requests and responses. Defaults to 16384 bytes

    *)
  14. body_buffer_size : int;
    (*

    Buffer size used for request and response bodies.

    *)
  15. enable_http2_server_push : bool;
  16. default_headers : (Headers.name * Headers.value) list;
    (*

    Set default headers (on the client) to be sent on every request.

    *)
}
val default : t