- Companion:
- class
Type members
Classlikes
Value members
Concrete methods
Creates a middleware using the specified encoder and decoder functions
Creates a middleware using the specified encoder and decoder functions
Creates a middleware using specified effectful encoder and decoder
Creates a middleware using specified effectful encoder and decoder
Creates a middleware using specified effect function
Creates a middleware using specified effect function
Creates a middleware which always fail with specified error
Creates a middleware which always fail with specified error
Logical operator to decide which middleware to select based on the predicate.
Logical operator to decide which middleware to select based on the predicate.
Logical operator to decide which middleware to select based on the predicate effect.
Logical operator to decide which middleware to select based on the predicate effect.
Creates a new middleware using transformation functions
Creates a new middleware using transformation functions
Creates a new middleware using effectful transformation functions
Creates a new middleware using effectful transformation functions
Inherited methods
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
- Inherited from:
- Auth
Creates a middleware for basic authentication
Creates a middleware for basic authentication
- Inherited from:
- Auth
Creates a middleware for basic authentication using an effectful verification function
Creates a middleware for basic authentication using an effectful verification function
- Inherited from:
- Auth
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
- Inherited from:
- Auth
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
- Inherited from:
- Auth
Creates a middleware for Cross-Origin Resource Sharing (CORS).
Creates a middleware for Cross-Origin Resource Sharing (CORS).
- See also:
- Inherited from:
- Cors
Generates a new CSRF token that can be validated using the csrfValidate middleware.
Generates a new CSRF token that can be validated using the csrfValidate middleware.
CSRF middlewares: To prevent Cross-site request forgery attacks. This middleware is modeled after the double submit cookie pattern. Used in conjunction with csrfValidate middleware.
- Inherited from:
- Csrf
Validates the CSRF token appearing in the request headers. Typically the
token should be set using the csrfGenerate middleware.
Validates the CSRF token appearing in the request headers. Typically the
token should be set using the csrfGenerate middleware.
CSRF middlewares : To prevent Cross-site request forgery attacks. This middleware is modeled after the double submit cookie pattern. Used in conjunction with csrfGenerate middleware
- Inherited from:
- Csrf
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.
- Inherited from:
- Auth
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.
- Inherited from:
- Auth
Add log status, method, url and time taken from req to res
Add log status, method, url and time taken from req to res
- Inherited from:
- Web
Logical operator to decide which middleware to select based on the header
Logical operator to decide which middleware to select based on the header
- Inherited from:
- Web
Logical operator to decide which middleware to select based on the method.
Logical operator to decide which middleware to select based on the method.
- Inherited from:
- Web
Logical operator to decide which middleware to select based on the predicate.
Logical operator to decide which middleware to select based on the predicate.
- Inherited from:
- Web
Logical operator to decide which middleware to select based on the predicate.
Logical operator to decide which middleware to select based on the predicate.
- Inherited from:
- Web
Creates a new middleware using transformation functions
Creates a new middleware using transformation functions
- Inherited from:
- Web
Creates a new middleware using effectful transformation functions
Creates a new middleware using effectful transformation functions
- Inherited from:
- Web
Creates a middleware that produces a Patch for the Response
Creates a middleware that produces a Patch for the Response
- Inherited from:
- Web
Creates a middleware that produces a Patch for the Response effectfully.
Creates a middleware that produces a Patch for the Response effectfully.
- Inherited from:
- Web
Runs the effect after the middleware is applied
Runs the effect after the middleware is applied
- Inherited from:
- Web
Runs the effect before the request is passed on to the HttpApp on which the middleware is applied.
Runs the effect before the request is passed on to the HttpApp on which the middleware is applied.
- Inherited from:
- Web
Creates a new middleware that always sets the response status to the provided value
Creates a new middleware that always sets the response status to the provided value
- Inherited from:
- Web
Creates a middleware for signing cookies
Creates a middleware for signing cookies
- Inherited from:
- Web
Times out the application with a 408 status code.
Times out the application with a 408 status code.
- Inherited from:
- Web
Updates the provided list of headers to the response
Updates the provided list of headers to the response
- Definition Classes
- Web -> HeaderModifier
- Inherited from:
- Web
Creates a middleware that updates the response produced
Creates a middleware that updates the response produced
- Inherited from:
- Web
Applies the middleware only when the condition for the headers are true
Applies the middleware only when the condition for the headers are true
- Inherited from:
- Web
Applies the middleware only if the condition function evaluates to true
Applies the middleware only if the condition function evaluates to true
- Inherited from:
- Web
Applies the middleware only if the condition function effectfully evaluates to true
Applies the middleware only if the condition function effectfully evaluates to true
- Inherited from:
- Web