- Companion:
- class
Type members
Classlikes
Value members
Concrete methods
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
Creates a middleware which can allow or disallow access to an http based on the predicate effect
Creates a middleware which can allow or disallow access to an http based on the predicate effect
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 returns an empty http value
Creates a middleware which returns an empty http value
Creates a middleware which always fail with specified error
Creates a middleware which always fail with specified error
An empty middleware that doesn't do perform any operations on the provided Http and returns it as it is.
An empty middleware that doesn't do perform any operations on the provided Http and returns it as it is.
An empty middleware that doesn't do perform any operations on the provided Http and returns it as it is.
An empty middleware that doesn't do perform any operations on the provided Http and returns it as it is.
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
Creates a middleware which always succeed with specified value
Creates a middleware which always succeed with specified value
Creates a new middleware using two transformation functions, one that's applied to the incoming type of the Http and one that applied to the outgoing type of the Http.
Creates a new middleware using two transformation functions, one that's applied to the incoming type of the Http and one that applied to the outgoing type of the Http.
Creates a new middleware using two transformation functions, one that's applied to the incoming type of the Http and one that applied to the outgoing type of the Http.
Creates a new middleware using two transformation functions, one that's applied to the incoming type of the Http and one that applied to the outgoing type of the Http.
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 (hidden)
Creates a middleware for basic authentication
Creates a middleware for basic authentication
- Inherited from:
- Auth (hidden)
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 (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
- Inherited from:
- Auth (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
- Inherited from:
- Auth (hidden)
Creates a middleware for Cross-Origin Resource Sharing (CORS).
Creates a middleware for Cross-Origin Resource Sharing (CORS).
- See also:
- Inherited from:
- Cors (hidden)
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 (hidden)
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 (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.
- Inherited from:
- Auth (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.
- Inherited from:
- Auth (hidden)
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 (hidden)
Removes the trailing slash from the path.
Removes the trailing slash from the path.
- Inherited from:
- Web (hidden)
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 (hidden)
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 (hidden)
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 (hidden)
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 (hidden)
Creates a new middleware using transformation functions
Creates a new middleware using transformation functions
- Inherited from:
- Web (hidden)
Creates a new middleware using effectful transformation functions
Creates a new middleware using effectful transformation functions
- Inherited from:
- Web (hidden)
Creates a middleware that produces a Patch for the Response
Creates a middleware that produces a Patch for the Response
- Inherited from:
- Web (hidden)
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 (hidden)
Client redirect temporary or permanent to specified url.
Client redirect temporary or permanent to specified url.
- Inherited from:
- Web (hidden)
Permanent redirect if the trailing slash is present in the request URL.
Permanent redirect if the trailing slash is present in the request URL.
- Inherited from:
- Web (hidden)
Runs the effect after the middleware is applied
Runs the effect after the middleware is applied
- Inherited from:
- Web (hidden)
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 (hidden)
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 (hidden)
Creates a middleware for signing cookies
Creates a middleware for signing cookies
- Inherited from:
- Web (hidden)
Times out the application with a 408 status code.
Times out the application with a 408 status code.
- Inherited from:
- Web (hidden)
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 (hidden)
Creates a middleware that updates the response produced
Creates a middleware that updates the response produced
- Inherited from:
- Web (hidden)
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 (hidden)
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 (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
- Inherited from:
- Web (hidden)
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 (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
- Inherited from:
- Web (hidden)
Applies the middleware only if status matches the condition
Applies the middleware only if status matches the condition
- Inherited from:
- Web (hidden)