IWebhookTransport over Apache HttpClient: bounded connect and request
timeouts, redirects and retries off, and at most max-response-bytes of the
answer read.
Apache rather than java.net.http because it takes a DNS resolver: a request
carrying :addresses connects to those, while the Host header, TLS SNI and
certificate hostname check still use the URL's host.
`IWebhookTransport` over Apache HttpClient: bounded connect and request timeouts, redirects and retries off, and at most `max-response-bytes` of the answer read. Apache rather than java.net.http because it takes a DNS resolver: a request carrying `:addresses` connects to those, while the Host header, TLS SNI and certificate hostname check still use the URL's host.
(create-transport {:keys [ssl-context timeout-ms connect-timeout-ms
max-response-bytes]})Settings as service/defaults gives them, plus an optional :ssl-context
for the trust store (the JVM default otherwise).
Settings as `service/defaults` gives them, plus an optional `:ssl-context` for the trust store (the JVM default otherwise).
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |