HTTP request builder for Java's java.net.http.HttpRequest.
HTTP request builder for Java's java.net.http.HttpRequest.
(build {:keys [headers method body timeout uri version expect-continue]})Builds and returns a java.net.http.HttpRequest instance.
Takes a map with the following keys: :uri - String, the URL to request (required) :method - Keyword or string, HTTP method (required) :headers - Map of request headers, keys can be either keyword or string :body - String, byte array, File, Path, InputStream, or HttpRequest$BodyPublisher :timeout - Request timeout in millis (int) or java.time.Duration :version - HTTP version keyword or HttpClient$Version instance :expect-continue - Boolean, whether to use Expect: 100-Continue header
Builds and returns a java.net.http.HttpRequest instance. Takes a map with the following keys: :uri - String, the URL to request (required) :method - Keyword or string, HTTP method (required) :headers - Map of request headers, keys can be either keyword or string :body - String, byte array, File, Path, InputStream, or HttpRequest$BodyPublisher :timeout - Request timeout in millis (int) or java.time.Duration :version - HTTP version keyword or HttpClient$Version instance :expect-continue - Boolean, whether to use Expect: 100-Continue header
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 |