Liking cljdoc? Tell your friends :D

martian.test


always-generate-responseclj/s

(always-generate-response response-type)
source

clj-http-responderclj

source

cljs-http-respondercljs

source

constant-responsesclj/s

(constant-responses responses)
source

generate-error-responseclj/s

source

generate-responseclj/s

source

generate-responsesclj/s

(generate-responses response-types)
source

generate-success-responseclj/s

source

httpkit-responderclj

source

respond-asclj/s

(respond-as martian implementation-name)

You only need to call this if you have a martian which was created without martian's standard http-specific interceptors, i.e. those found in martian.httpkit and so on.

Implementations of http requests - as provided by martian httpkit, clj-http and cljs-http - give implementation-specific response types; promises, data and core.async channels respectively. As your production code will expect these response types this interceptor lets you simulate those response wrappers. Removes all interceptors that would perform real HTTP operations

You only need to call this if you have a martian which was created without martian's standard http-specific interceptors,
 i.e. those found in martian.httpkit and so on.

Implementations of http requests - as provided by martian httpkit, clj-http and cljs-http - give
implementation-specific response types; promises, data and core.async channels respectively.
As your production code will expect these response types this interceptor lets you simulate those response wrappers.
Removes all interceptors that would perform real HTTP operations
sourceraw docstring

respond-with-constantclj/s

(respond-with-constant martian responses)

Adds an interceptor that simulates the server constantly responding with the supplied response. Removes all interceptors that would perform real HTTP operations.

Adds an interceptor that simulates the server constantly responding with the supplied response.
Removes all interceptors that would perform real HTTP operations.
sourceraw docstring

respond-with-generatedclj/s

(respond-with-generated martian response-types)

Adds an interceptor that simulates the server responding to operations by generating responses of the supplied response-type from the handler response schemas. Removes all interceptors that would perform real HTTP operations

Adds an interceptor that simulates the server responding to operations by generating responses of the supplied response-type
from the handler response schemas.
Removes all interceptors that would perform real HTTP operations
sourceraw docstring

response-generatorclj/s

(response-generator {:keys [handlers]} route-name)
source

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

× close