Liking cljdoc? Tell your friends :D
Clojure only.

java-http.request

HTTP request builder for Java's java.net.http.HttpRequest.

HTTP request builder for Java's java.net.http.HttpRequest.
raw docstring

buildclj

(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
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close