Liking cljdoc? Tell your friends :D
Clojure only.

java-http.response

HTTP response formatter for Java's java.net.http.HttpResponse.

HTTP response formatter for Java's java.net.http.HttpResponse.
raw docstring

formatclj

(format response)

Converts a Java HttpResponse to a Clojure map.

Takes a java.net.http.HttpResponse. Extracts all relevant data, converting Java types to Clojure types.

The returned map contains: :body - String, byte array, InputStream, or File depending on body handler :headers - Map of keyword to String/Vector for response headers :status - Integer, the HTTP status code :uri - String, the final URI after any redirects :version - Keyword, :HTTP_1_1 or :HTTP_2 :previous-response - The previous response in a redirect chain, or nil :ssl-session - The SSL session used, or nil

Converts a Java HttpResponse to a Clojure map.

Takes a java.net.http.HttpResponse.
Extracts all relevant data, converting Java types to Clojure types.

The returned map contains:
  :body              - String, byte array, InputStream, or File depending on body handler
  :headers           - Map of keyword to String/Vector for response headers
  :status            - Integer, the HTTP status code
  :uri               - String, the final URI after any redirects
  :version           - Keyword, :HTTP_1_1 or :HTTP_2
  :previous-response - The previous response in a redirect chain, or nil
  :ssl-session       - The SSL session used, or nil
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