Liking cljdoc? Tell your friends :D

tupelo.pedestal

Utils for Pedestal

Utils for Pedestal
raw docstring

*ctx-trim-enable*clj

Flag to control automatic trimming of interceptor-chain control information.

Flag to control automatic trimming of interceptor-chain control information.
sourceraw docstring

Contextclj

Plumatic Schema definition of a Pedestal Context

Plumatic Schema definition of a Pedestal Context
sourceraw docstring

context-keys-baseclj

source

context?clj

(context? map-in)

Inputs: [map-in :- tsk/KeyMap] Returns: s/Bool

Returns true if the map arg is a Pedestal context map

Inputs: [map-in :- tsk/KeyMap]
Returns: s/Bool

Returns true if the map arg is a Pedestal context map
sourceraw docstring

default-service-mapclj

Default options for configuring a Pedestal webserver

Default options for configuring a Pedestal webserver
sourceraw docstring

definterceptorcljmacro

(definterceptor name ctx)

Creates a Pedestal interceptor given a name and a map like (definterceptor my-intc { :enter <enter-fn> :leave <leave-fn> :error <error-fn> } )

Creates a Pedestal interceptor given a name and a map like
(definterceptor my-intc
  { :enter  <enter-fn>
    :leave  <leave-fn>
    :error  <error-fn> } )  
sourceraw docstring

interceptor?clj

(interceptor? map-in)

Inputs: [map-in :- tsk/KeyMap] Returns: s/Bool

Returns true if the map arg is a Pedestal interceptor map

Inputs: [map-in :- tsk/KeyMap]
Returns: s/Bool

Returns true if the map arg is a Pedestal interceptor map
sourceraw docstring

invoke-interceptorsclj

(invoke-interceptors ctx interceptors)

Inputs: [ctx :- tsk/KeyMap interceptors :- [tsk/KeyMap]]

Given a context and a vector of interceptor-maps, invokes the interceptor chain and returns the resulting output context.

Inputs: [ctx :- tsk/KeyMap interceptors :- [tsk/KeyMap]]

Given a context and a vector of interceptor-maps, invokes the interceptor chain
and returns the resulting output context.
sourceraw docstring

not-foundclj

(not-found)

Returns response for status=Not Found: {:status 404 :body 'Not found '}

Returns response for status=Not Found:  {:status 404 :body 'Not found
'}
sourceraw docstring

okclj

(ok body)

Wraps response for status=OK as: {:status 200 :body body}

Wraps response for status=OK as:  {:status 200 :body body}
sourceraw docstring

Requestclj

Plumatic Schema definition of a Pedestal Request

Plumatic Schema definition of a Pedestal Request
sourceraw docstring

request-keys-baseclj

source

request?clj

(request? map-in)

Inputs: [map-in :- tsk/KeyMap] Returns: s/Bool

Returns true if the map arg is a Pedestal request map

Inputs: [map-in :- tsk/KeyMap]
Returns: s/Bool

Returns true if the map arg is a Pedestal request map
sourceraw docstring

server-config!clj

(server-config!)
(server-config! server-opts)

Inputs: ([] [server-opts :- tsk/KeyMap])

Inputs: ([] [server-opts :- tsk/KeyMap])
sourceraw docstring

server-restart!clj

(server-restart!)

Stops and restarts the Jetty HTTP server for a Pedestal service

Stops and restarts the Jetty HTTP server for a Pedestal service
sourceraw docstring

server-start!clj

(server-start!)

Starts the Jetty HTTP server for a Pedestal service as configured via define-service

Starts the Jetty HTTP server for a Pedestal service as configured via `define-service`
sourceraw docstring

server-stop!clj

(server-stop!)

Stops the Jetty HTTP server.

Stops the Jetty HTTP server.
sourceraw docstring

service-deleteclj

(service-delete & args)

In the context of (with-service ...), executes an HTTP DELETE request.

In the context of (with-service ...), executes an HTTP DELETE request. 
sourceraw docstring

service-fnclj

(service-fn)

Returns the service-function (which can be used for testing via pedestal.test/response-for)

Returns the `service-function` (which can be used for testing via pedestal.test/response-for)
sourceraw docstring

service-getclj

(service-get & args)

In the context of (with-service ...), executes an HTTP GET request.

In the context of (with-service ...), executes an HTTP GET request. 
sourceraw docstring

service-postclj

(service-post & args)

In the context of (with-service ...), executes an HTTP POST request.

In the context of (with-service ...), executes an HTTP POST request. 
sourceraw docstring

table-routeclj

(table-route route-map)

Inputs: [route-map :- TableRouteInfo] Returns: tsk/Tuple

Creates a Pedestal table-route entry from a context map.

Inputs: [route-map :- TableRouteInfo]
Returns: tsk/Tuple

Creates a Pedestal table-route entry from a context map.
sourceraw docstring

TableRouteInfoclj

Plumatic Schema definition of a Pedestal TableRouteInfo

Plumatic Schema definition of a Pedestal TableRouteInfo
sourceraw docstring

walk-ctx-trimclj

(walk-ctx-trim data)

Removes seldom-used keys from interceptor-chain context map to declutter debug printouts (i.e. ':io.pedestal.interceptor.chain/*').

Removes seldom-used keys from interceptor-chain context map to declutter debug printouts
(i.e. ':io.pedestal.interceptor.chain/*').
sourceraw docstring

with-servercljmacro

(with-server service-map & forms)

Run the forms in the context of a Jetty webserver. Upon completion, stops the server even if exception occurs.

Run the forms in the context of a Jetty webserver.  Upon completion, stops the server even if exception occurs.
sourceraw docstring

with-servicecljmacro

(with-service service-map & forms)

Run the forms in the context of a Pedestal service definition, but w/o starting the Jetty webserver.

Run the forms in the context of a Pedestal service definition, but w/o starting the Jetty webserver.
sourceraw docstring

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

× close