Liking cljdoc? Tell your friends :D

io.pedestal.service.protocols


PedestalConnectorcljprotocol

A connector to an HTTP network adaptor, created from a service map.

The connector, once started, will handle incoming requests and outgoing responses, building on the interceptors and initial context provided in the service map.

A connector to an HTTP network adaptor, created from a service map.

The connector, once started, will handle incoming requests and outgoing responses, building
on the interceptors and initial context provided in the service map.

start-connector!clj

(start-connector! this)

Starts (or restarts) the connector. If the :join? key of the service map is true, this method will block until the connector is stopped.

Invoking start-connector when the connector is already started results in connector-defined behavior.

Returns the connector.

Starts (or restarts) the connector.  If the :join? key of the service map is true, this method will block
until the connector is stopped.

Invoking start-connector when the connector is already started results in connector-defined behavior.

Returns the connector.

stop-connector!clj

(stop-connector! this)

Stops the connector, if started. Does nothing if not started. This will unblock a thread that is blocked in start-connector.

Returns the connector.

Stops the connector, if started. Does nothing if not started.  This will unblock a thread
that is blocked in start-connector.

Returns the connector.

test-requestclj

(test-request this ring-request)

Test a Ring request map, returning a Ring response map.

This method will operate regardless of whether the connector is started or stopped.

The :body of the request must be nil, a String, a File, or an InputStream; likewise, in the returned response the :body will be nil or an InputStream.

Test a Ring request map, returning a Ring response map.

This method will operate regardless of whether the connector is started or stopped.

The :body of the request must be nil, a String, a File, or an InputStream; likewise,
in the returned response the :body will be nil or an InputStream.
sourceraw docstring

ResponseBufferSizecljprotocol

Returns the buffer size of the response object; this protocol is adapted to the HTTPServletResponse object which is not a dependency available to the pedestal.service module.

Returns the buffer size of the response object; this protocol is adapted to the HTTPServletResponse object which
is not a dependency available to the pedestal.service module.

response-buffer-sizeclj

(response-buffer-size this)

Returns the buffer size, in bytes, available to this response, or nil if it can not be determined.

Returns the buffer size, in bytes, available to this response, or nil if it can not be determined.
sourceraw docstring

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

× close