io.pedestal.http.ring-middlewares

This namespace creates interceptors for ring-core middlewares.

content-type

(content-type & [opts])
Interceptor for content-type ring middleware.

cookies

Interceptor for cookies ring middleware. Be sure to persist :cookies
from the request to response.

fast-resource

(fast-resource root-path)(fast-resource root-path opts)
Interceptor for resource handling.
This interceptor will return async responses for large files (files larger than the HTTP Buffer)
If your container doesn't recognize FileChannel response bodies, this interceptor will cause errors
Supports a map of options:
:index? - If path is a directory, will attempt to find an 'index.*' file to serve. Defaults to true
:follow-symlinks? - Serve files through symbolic links. Defaults to false
:loader - A class loader specific for these resource fetches. Default to nil (use the main class loader)

file

(file root-path & [opts])
Interceptor for file ring middleware.

file-info

(file-info & [mime-types])
Interceptor for file-info ring middleware.

flash

(flash)
Interceptor for flash ring middleware. Be sure to persist keys needed
by session and cookie interceptors.

head

(head)
Interceptor to handle head requests. If used with defroutes, it will not work
if specified in an interceptors meta-key.

keyword-params

Retained for backward compatibility. io.pedestal.http.params/keyword-params is recommended

multipart-params

(multipart-params & [opts])
Interceptor for multipart-params ring middleware.

nested-params

(nested-params & [opts])
Interceptor for nested-params ring middleware.

not-modified

(not-modified)
Interceptor for not-modified ring middleware.

params

(params & [opts])
Interceptor for params ring middleware.

resource

(resource root-path)
Interceptor for resource ring middleware

response-fn-adapter

(response-fn-adapter response-fn)(response-fn-adapter response-fn opts)
Adapts a ring middleware fn taking a response and request to an interceptor context.

session

(session)(session options)
Interceptor for session ring middleware. Be sure to persist :session and
:session/key from request to the response.