Skip to content

Commit

Permalink
Document default HTTP version (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
seowalex authored Jul 2, 2024
1 parent b59a756 commit 1035b1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ Construct a custom client. To get the same behavior as the (implicit) default cl
* `:proxy` - a `java.net.ProxySelector` or a map of options, see docstring of [`->ProxySelector`](#babashka.http-client/->ProxySelector).
* `:authenticator` - a `java.net.Authenticator` or a map of options, see docstring of [`->Authenticator`](#babashka.http-client/->Authenticator).
* `:cookie-handler` - a `java.net.CookieHandler` or a map of options, see docstring of [`->CookieHandler`](#babashka.http-client/->CookieHandler).
* `:version` - the HTTP version: `:http1.1` or `:http2`.
* `:version` - the HTTP version: `:http1.1` or `:http2` (default: `:http2`).
* `:priority` - priority for HTTP2 requests, integer between 1-256 inclusive.

Returns map with:
Expand Down Expand Up @@ -260,7 +260,7 @@ Perform request. Returns map with at least `:body`, `:status`
* `:async-catch` - a function that is called on the async result if exceptional
* `:timeout` - request timeout in milliseconds
* `:throw` - throw on exceptional status codes, all other than `#{200 201 202 203 204 205 206 207 300 301 302 303 304 307}`
* `:version` - the HTTP version: `:http1.1` or `:http2`.
* `:version` - the HTTP version: `:http1.1` or `:http2` (default: `:http2`).
<p><sub><a href="https://github.com/babashka/http-client/blob/main/src/babashka/http_client.clj#L100-L125">Source</a></sub></p>

-----
Expand Down

0 comments on commit 1035b1e

Please sign in to comment.