(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
(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.
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close