Liking cljdoc? Tell your friends :D

io.pedestal.test

Pedestal testing utilities to simplify working with pedestal apps.

Pedestal testing utilities to simplify working with pedestal apps.
raw docstring

parse-urlclj

(parse-url url)
source

raw-response-forclj

(raw-response-for interceptor-service-fn verb url & options)

Return a ring response map for an HTTP request of type verb against url url, when applied to interceptor-service-fn. Useful for integration testing pedestal applications and getting all relevant middlewares invoked, including ones which integrate with the servlet infrastructure. The response body will be returned as a ByteArrayOutputStream. Options:

:body : An optional string that is the request body. :headers : An optional map that are the headers

Return a ring response map for an HTTP request of type `verb`
against url `url`, when applied to interceptor-service-fn. Useful
for integration testing pedestal applications and getting all
relevant middlewares invoked, including ones which integrate with
the servlet infrastructure. The response body will be returned as
a ByteArrayOutputStream.
Options:

:body : An optional string that is the request body.
:headers : An optional map that are the headers
sourceraw docstring

response-forclj

(response-for interceptor-service-fn verb url & options)

Return a ring response map for an HTTP request of type verb against url url, when applied to interceptor-service-fn. Useful for integration testing pedestal applications and getting all relevant middlewares invoked, including ones which integrate with the servlet infrastructure. The response body will be converted to a UTF-8 string. Options:

:body : An optional string that is the request body. :headers : An optional map that are the headers

Return a ring response map for an HTTP request of type `verb`
against url `url`, when applied to interceptor-service-fn. Useful
for integration testing pedestal applications and getting all
relevant middlewares invoked, including ones which integrate with
the servlet infrastructure. The response body will be converted
to a UTF-8 string.
Options:

:body : An optional string that is the request body.
:headers : An optional map that are the headers
sourceraw docstring

servlet-response-forclj

(servlet-response-for interceptor-service-fn verb url & args)

Return a ring response map for an HTTP request of type verb against url url, when applied to interceptor-service-fn. Useful for integration testing pedestal applications and getting all relevant middlewares invoked, including ones which integrate with the servlet infrastructure.

Return a ring response map for an HTTP request of type `verb`
against url `url`, when applied to interceptor-service-fn. Useful
for integration testing pedestal applications and getting all
relevant middlewares invoked, including ones which integrate with
the servlet infrastructure.
sourceraw docstring

test-servlet-responseclj

(test-servlet-response)

Returns a mock servlet response with a ServletOutputStream over a ByteArrayOutputStream. Captures the ByteArrayOutputStream in metadata. All headers set will swap a headers map held in an atom, also held in metadata.

Returns a mock servlet response with a ServletOutputStream over a
ByteArrayOutputStream. Captures the ByteArrayOutputStream in
metadata. All headers set will swap a headers map held in an atom,
also held in metadata.
sourceraw docstring

test-servlet-response-bodyclj

(test-servlet-response-body test-servlet-response)
source

test-servlet-response-headersclj

(test-servlet-response-headers test-servlet-response)
source

test-servlet-response-statusclj

(test-servlet-response-status test-servlet-response)
source

TestRequestBodycljprotocol

->servlet-input-streamclj

(->servlet-input-stream input)
source

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

× close