(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 requestsCreate 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
(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 headerObservations:
yuhrao.serdes.core
for more informationExecutes 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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close