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 : Cert.t 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. clientcert : (Cert.t * Cert.t) option;
    (*

    Client certificate in PEM format

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

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

    *)
  15. body_buffer_size : int;
    (*

    Buffer size used for request and response bodies.

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

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

    *)
  18. flush_headers_immediately : bool;
    (*

    Specifies whether to flush message headers to the transport immediately, or if Piaf should wait for the first body bytes to be written. Defaults to false.

    *)
  19. prefer_ip_version : [ `V4 | `V6 | `Both ];
    (*

    Specify IP version preference

    *)
}
val default : t
OCaml

Innovation. Community. Security.