Attributes
- Companion
- trait
- Graph
-
- Supertypes
- Self type
-
Middleware.type
Members list
Type members
Classlikes
Configuration for the CORS aspect.
Configuration for the CORS aspect.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
Creates a aspect for Cross-Origin Resource Sharing (CORS) using default options.
Creates a aspect for Cross-Origin Resource Sharing (CORS) using default options.
Attributes
- See also
Creates a aspect for Cross-Origin Resource Sharing (CORS).
Creates a aspect for Cross-Origin Resource Sharing (CORS).
Attributes
- See also
Creates a middleware for managing the flash scope.
Creates a middleware for managing the flash scope.
Attributes
Creates a middleware that will annotate log messages that are logged while a request is handled with log annotations derived from the request.
Creates a middleware that will annotate log messages that are logged while a request is handled with log annotations derived from the request.
Attributes
Creates a middleware that will annotate log messages that are logged while a request is handled with the names and the values of the specified headers.
Creates a middleware that will annotate log messages that are logged while a request is handled with the names and the values of the specified headers.
Attributes
Creates middleware that will annotate log messages that are logged while a request is handled with the names and the values of the specified headers.
Creates middleware that will annotate log messages that are logged while a request is handled with the names and the values of the specified headers.
Attributes
Creates middleware that will track metrics.
Creates middleware that will track metrics.
Value parameters
- extraLabels
-
A set of extra labels all metrics will be tagged with.
- requestDurationBoundaries
-
Boundaries for the HTTP request duration metric.
- requestDurationName
-
HTTP request duration metric name.
- totalRequestsName
-
Total HTTP requests metric name.
Attributes
Creates a middleware for serving static files from the directory docRoot
at the url path path
.
Creates a middleware for serving static files from the directory docRoot
at the url path path
.
Example: val serveDirectory = Middleware.serveDirectory(Path.empty / "assets", new File("/some/local/path"))
With this middleware in place, a request to https://www.domain.com/assets/folder/file1.jpg
would serve the local file /some/local/path/folder/file1.jpg
.
Attributes
Creates a middleware for serving static files from resources at the path path
.
Creates a middleware for serving static files from resources at the path path
.
Example: val serveResources = Middleware.serveResources(Path.empty / "assets")
With this middleware in place, a request to https://www.domain.com/assets/folder/file1.jpg
would serve the file src/main/resources/folder/file1.jpg
.
Attributes
Inherited methods
Sets a cookie in the response headers
Sets a cookie in the response headers
Attributes
- Inherited from:
- HandlerAspects (hidden)
Sets an effectfully created cookie in the response headers.
Sets an effectfully created cookie in the response headers.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Creates a middleware which can allow or disallow access to an http based on the predicate
Creates a middleware which can allow or disallow access to an http based on the predicate
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates a middleware which can allow or disallow access to an http based on the effectful predicate.
Creates a middleware which can allow or disallow access to an http based on the effectful predicate.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates a middleware for basic authentication that checks if the credentials are same as the ones given
Creates a middleware for basic authentication that checks if the credentials are same as the ones given
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates a middleware for basic authentication
Creates a middleware for basic authentication
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates a middleware for basic authentication using an effectful verification function
Creates a middleware for basic authentication using an effectful verification function
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates a middleware for bearer authentication that checks the token using the given function
Creates a middleware for bearer authentication that checks the token using the given function
Value parameters
- f:
-
function that validates the token string inside the Bearer Header
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates a middleware for bearer authentication that checks the token using the given effectful function
Creates a middleware for bearer authentication that checks the token using the given effectful function
Value parameters
- f:
-
function that effectfully validates the token string inside the Bearer Header
Attributes
- Inherited from:
- HandlerAspects (hidden)
Beautify the error response.
Beautify the error response.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates an authentication middleware that only allows authenticated requests to be passed on to the app.
Creates an authentication middleware that only allows authenticated requests to be passed on to the app.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates an authentication middleware that only allows authenticated requests to be passed on to the app, and provides a context to the request handlers.
Creates an authentication middleware that only allows authenticated requests to be passed on to the app, and provides a context to the request handlers.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates an authentication middleware that only allows authenticated requests to be passed on to the app, and provides a context to the request handlers.
Creates an authentication middleware that only allows authenticated requests to be passed on to the app, and provides a context to the request handlers.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates an authentication middleware that only allows authenticated requests to be passed on to the app using an effectful verification function.
Creates an authentication middleware that only allows authenticated requests to be passed on to the app using an effectful verification function.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates middleware that debugs request and response.
Creates middleware that debugs request and response.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates middleware that drops trailing slashes from the request URL.
Creates middleware that drops trailing slashes from the request URL.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates middleware that drops trailing slashes from the request URL.
Creates middleware that drops trailing slashes from the request URL.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates middleware that aborts the request with the specified response. No downstream middleware will be invoked.
Creates middleware that aborts the request with the specified response. No downstream middleware will be invoked.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates middleware that aborts the request with the specified response. No downstream middleware will be invoked.
Creates middleware that aborts the request with the specified response. No downstream middleware will be invoked.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates conditional middleware that switches between one middleware and another based on the result of the predicate, applied to the incoming request's headers.
Creates conditional middleware that switches between one middleware and another based on the result of the predicate, applied to the incoming request's headers.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates conditional middleware that switches between one middleware and another based on the result of the predicate, applied to the incoming request's method.
Creates conditional middleware that switches between one middleware and another based on the result of the predicate, applied to the incoming request's method.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates conditional middleware that switches between one middleware and another based on the result of the predicate, applied to the incoming request.
Creates conditional middleware that switches between one middleware and another based on the result of the predicate, applied to the incoming request.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates conditional middleware that switches between one middleware and another based on the result of the predicate, effectfully applied to the incoming request.
Creates conditional middleware that switches between one middleware and another based on the result of the predicate, effectfully applied to the incoming request.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates middleware that modifies the response, potentially using the request.
Creates middleware that modifies the response, potentially using the request.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates middleware that will apply the specified stateless handlers to incoming and outgoing requests. If the incoming handler fails, then the outgoing handler will not be invoked.
Creates middleware that will apply the specified stateless handlers to incoming and outgoing requests. If the incoming handler fails, then the outgoing handler will not be invoked.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates middleware that will apply the specified stateful handlers to incoming and outgoing requests. If the incoming handler fails, then the outgoing handler will not be invoked.
Creates middleware that will apply the specified stateful handlers to incoming and outgoing requests. If the incoming handler fails, then the outgoing handler will not be invoked.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates middleware that will apply the specified handler to incoming requests.
Creates middleware that will apply the specified handler to incoming requests.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates middleware that will apply the specified handler to outgoing responses.
Creates middleware that will apply the specified handler to outgoing responses.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates a new middleware using transformation functions
Creates a new middleware using transformation functions
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates a new middleware using effectful transformation functions
Creates a new middleware using effectful transformation functions
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates a middleware that produces a Patch for the Response
Creates a middleware that produces a Patch for the Response
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates a middleware that produces a Patch for the Response effectfully.
Creates a middleware that produces a Patch for the Response effectfully.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates a middleware that will redirect requests to the specified URL.
Creates a middleware that will redirect requests to the specified URL.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates middleware that will redirect requests with trailing slash to the same path without trailing slash.
Creates middleware that will redirect requests with trailing slash to the same path without trailing slash.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Creates middleware that will perform request logging.
Creates middleware that will perform request logging.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates middleware that will run the specified effect after every request.
Creates middleware that will run the specified effect after every request.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates middleware that will run the specified effect before every request.
Creates middleware that will run the specified effect before every request.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Attributes
- Inherited from:
- HeaderModifier
Creates a middleware for signing cookies
Creates a middleware for signing cookies
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates middleware that will update the status of the response.
Creates middleware that will update the status of the response.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates middleware that will update the headers of the response.
Creates middleware that will update the headers of the response.
Attributes
- Definition Classes
-
HandlerAspects -> HeaderModifier
- Inherited from:
- HandlerAspects (hidden)
Creates middleware that will update the method of the request.
Creates middleware that will update the method of the request.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates middleware that will update the path of the request.
Creates middleware that will update the path of the request.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates middleware that will update the request.
Creates middleware that will update the request.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates middleware that will update the request effectfully.
Creates middleware that will update the request effectfully.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates middleware that will update the response.
Creates middleware that will update the response.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates middleware that will update the response effectfully.
Creates middleware that will update the response effectfully.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Creates middleware that will update the URL of the request.
Creates middleware that will update the URL of the request.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Applies the middleware only if the condition function evaluates to true
Applies the middleware only if the condition function evaluates to true
Attributes
- Inherited from:
- HandlerAspects (hidden)
Applies the middleware only when the header-based condition evaluates to true.
Applies the middleware only when the header-based condition evaluates to true.
Attributes
- Inherited from:
- HandlerAspects (hidden)
Applies the middleware only if the condition function evaluates to true
Applies the middleware only if the condition function evaluates to true
Attributes
- Inherited from:
- HandlerAspects (hidden)
Applies the middleware only if the condition function effectfully evaluates to true
Applies the middleware only if the condition function effectfully evaluates to true
Attributes
- Inherited from:
- HandlerAspects (hidden)
Applies the middleware only if the condition function effectfully evaluates to true
Applies the middleware only if the condition function effectfully evaluates to true
Attributes
- Inherited from:
- HandlerAspects (hidden)
Inherited fields
The identity middleware, which has no effect on request or response.
The identity middleware, which has no effect on request or response.
Attributes
- Inherited from:
- HandlerAspects (hidden)