Liking cljdoc? Tell your friends :D

net.http.client

Small wrapper around netty for HTTP clients.

Small wrapper around netty for HTTP clients.
raw docstring

async-requestclj

(async-request request-map handler)
(async-request {:keys [group channel ssl-ctx]} request-map handler)

Execute an asynchronous HTTP request, produce the response asynchronously on the provided handler function.

If no client is provided, create one.

Execute an asynchronous HTTP request, produce the response
asynchronously on the provided `handler` function.

If no client is provided, create one.
sourceraw docstring

build-clientclj

(build-client)
(build-client {:keys [ssl] :as options})

Create an http client instance. In most cases you will need only one per JVM. You may need several if you want to operate under different TLS contexts

Create an http client instance. In most cases you will need only
one per JVM. You may need several if you want to operate under
different TLS contexts
sourceraw docstring

default-inbufclj

source

method-reclj

source

netty-handlerclj

(netty-handler f transform)

Simple netty-handler, everything may happen in channel read, since we're expecting a full http request.

Simple netty-handler, everything may happen in
channel read, since we're expecting a full http request.
sourceraw docstring

requestclj

(request request-map)
(request client request-map)

Execute a request against an asynchronous client. If no client exists, create one. Waits for the response and returns it.

Execute a request against an asynchronous client. If no client exists, create one.
Waits for the response and returns it.
sourceraw docstring

request-chanclj

(request-chan request-map)
(request-chan client request-map)
(request-chan client request-map ch)

Execute a request against an asynchronous client and produce the response on a promise channel.

Execute a request against an asynchronous client and produce the response on
a promise channel.
sourceraw docstring

request-initializerclj

(request-initializer ssl? ssl-ctx handler transform host port)

Our channel initializer.

Our channel initializer.
sourceraw docstring

response-handlerclj

(response-handler f ctx msg body)
source

version-reclj

source

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

× close