Liking cljdoc? Tell your friends :D

drawbridge.client


default-http-headersclj

Extra HTTP headers configured under [:drawbridge :http-headers] in the nREPL config (e.g. .nrepl.edn). All Drawbridge client transports send these when no :http-headers option is given.

Extra HTTP headers configured under [:drawbridge :http-headers] in
the nREPL config (e.g. `.nrepl.edn`). All Drawbridge client
transports send these when no :http-headers option is given.
sourceraw docstring

ring-client-transportclj

(ring-client-transport url)
(ring-client-transport url {:keys [http-headers]})

Returns an nREPL client-side transport to connect to HTTP nREPL endpoints implemented by ring-handler.

Accepts an options map with the following keys:

  • :http-headers -- extra HTTP headers to send with every request, e.g. {"Authorization" "Bearer <token>"}. When nil or absent, falls back to default-http-headers (the nREPL config); pass an empty map to send no extra headers despite the config.

This fn is implicitly registered as the implementation of nrepl.core/url-connect for http and https schemes; so, once this namespace is loaded, any tool that uses url-connect will use this implementation for connecting to HTTP and HTTPS nREPL endpoints.

Returns an nREPL client-side transport to connect to HTTP nREPL
endpoints implemented by `ring-handler`.

Accepts an options map with the following keys:

* `:http-headers` -- extra HTTP headers to send with every request,
  e.g. {"Authorization" "Bearer <token>"}. When nil or absent,
  falls back to `default-http-headers` (the nREPL config); pass an
  empty map to send no extra headers despite the config.

This fn is implicitly registered as the implementation of
`nrepl.core/url-connect` for `http` and `https` schemes;
so, once this namespace is loaded, any tool that uses `url-connect`
will use this implementation for connecting to HTTP and HTTPS
nREPL endpoints.
sourceraw 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