Liking cljdoc? Tell your friends :D
Clojure only.

yuhrao.http-client.core


clientclj

(client)
(client opts)

Create a new HTTP Client. Opts:

  • :base-url: Base URL for all requests
  • :interceptors: a list of babashka.http-client interceptors. These interceptors will be placed after default interceptors
  • :req: a request map to be passed to all requests
Create a new HTTP Client. Opts:
- `:base-url`: Base URL for all requests
- `:interceptors`: a list of babashka.http-client interceptors. These interceptors will be placed after default interceptors
- `:req`: a request map to be passed to all requests
raw docstring

requestclj

(request client opts)

Executes a HTTP request. Opts:

  • :path - Path to be appended to base-url
  • :method - HTTP method
  • :headers - HTTP headers
  • :body - HTTP body
  • :bearer-token - Token to be added in Authorization header

Observations:

  • Request and response bodies are automatically serialized/deserialized based on content type. See yuhrao.serdes.core for more information
  • Headers are normalized to HTTP-Header-Case. You can send any kv format in there
Executes a HTTP request. Opts:
- `:path` - Path to be appended to base-url
- `:method` - HTTP method
- `:headers` - HTTP headers
- `:body` - HTTP body
- `:bearer-token` - Token to be added in Authorization header

Observations:
- Request and response bodies are automatically serialized/deserialized based on content type. See `yuhrao.serdes.core` for more information
- Headers are normalized to HTTP-Header-Case. You can send any kv format in there
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close