io.pedestal.http.ring-middlewares
This namespace creates interceptors for ring-core middlewares.
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)
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 interceptor’s 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.
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.