Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- Middleware.type
Members list
Type members
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
Attributes
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
Attributes
Creates a middleware using the specified encoder and decoder functions
Creates a middleware using the specified encoder and decoder functions
Attributes
Creates a codec middleware using two Http.
Creates a codec middleware using two Http.
Attributes
Creates a middleware using specified effectful encoder and decoder
Creates a middleware using specified effectful encoder and decoder
Attributes
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.
Attributes
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.
Attributes
Inherited methods
Sets cookie in response headers
Sets cookie in response headers
Attributes
- Inherited from:
- RequestHandlerMiddlewares (hidden)
Attributes
- Inherited from:
- RequestHandlerMiddlewares (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:
- HttpRouteMiddlewares (hidden)
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
Attributes
- Inherited from:
- HttpRouteMiddlewares (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:
- Auth (hidden)
Creates a middleware for basic authentication
Creates a middleware for basic authentication
Attributes
- 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
Attributes
- 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
Attributes
- 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
Attributes
- f:
function that effectfully validates the token string inside the Bearer Header
- Inherited from:
- Auth (hidden)
Beautify the error response.
Beautify the error response.
Attributes
- Inherited from:
- RequestHandlerMiddlewares (hidden)
Creates a middleware for Cross-Origin Resource Sharing (CORS).
Creates a middleware for Cross-Origin Resource Sharing (CORS).
Attributes
- See also:
- Inherited from:
- Cors (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:
- 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.
Attributes
- 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
Attributes
- Inherited from:
- RequestHandlerMiddlewares (hidden)
Removes the trailing slash from the path.
Removes the trailing slash from the path.
Attributes
- Inherited from:
- HttpRouteMiddlewares (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
Attributes
- Inherited from:
- RequestHandlerMiddlewares (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.
Attributes
- Inherited from:
- RequestHandlerMiddlewares (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.
Attributes
- Inherited from:
- RequestHandlerMiddlewares (hidden)
Attributes
- Inherited from:
- RequestHandlerMiddlewares (hidden)
Attributes
- Inherited from:
- RequestHandlerMiddlewares (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.
Attributes
- Inherited from:
- RequestHandlerMiddlewares (hidden)
Attributes
- Inherited from:
- RequestHandlerMiddlewares (hidden)
Creates a new middleware using transformation functions
Creates a new middleware using transformation functions
Attributes
- Inherited from:
- RequestHandlerMiddlewares (hidden)
Creates a new middleware using effectful transformation functions
Creates a new middleware using effectful transformation functions
Attributes
- Inherited from:
- RequestHandlerMiddlewares (hidden)
Adds metrics to a zio-http server.
Adds metrics to a zio-http server.
Attributes
- extraLabels
A set of extra labels all metrics will be tagged with.
- pathLabelMapper
A mapping function to map incoming paths to patterns, such as /users/1 to /users/:id.
- requestDurationBoundaries
Boundaries for the HTTP request duration metric.
- requestDurationName
HTTP request duration metric name.
- totalRequestsName
Total HTTP requests metric name.
- Note:
When using Prometheus as your metrics backend, make sure to provide a
pathLabelMapper
in order to avoid high cardinality labels.- Inherited from:
- Metrics (hidden)
Creates a middleware that produces a Patch for the Response
Creates a middleware that produces a Patch for the Response
Attributes
- Inherited from:
- RequestHandlerMiddlewares (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:
- RequestHandlerMiddlewares (hidden)
Client redirect temporary or permanent to specified url.
Client redirect temporary or permanent to specified url.
Attributes
- Inherited from:
- RequestHandlerMiddlewares (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.
Attributes
- Inherited from:
- RequestHandlerMiddlewares (hidden)
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- RequestHandlerMiddlewares (hidden)
Attributes
- Inherited from:
- HtmlErrorResponses (hidden)
Attributes
- Inherited from:
- RequestLogging (hidden)
Runs the effect after the middleware is applied
Runs the effect after the middleware is applied
Attributes
- Inherited from:
- RequestHandlerMiddlewares (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.
Attributes
- Inherited from:
- RequestHandlerMiddlewares (hidden)
Attributes
- Inherited from:
- HeaderModifier
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
Attributes
- Inherited from:
- RequestHandlerMiddlewares (hidden)
Creates a middleware for signing cookies
Creates a middleware for signing cookies
Attributes
- Inherited from:
- RequestHandlerMiddlewares (hidden)
Times out the application with a 408 status code.
Times out the application with a 408 status code.
Attributes
- Inherited from:
- RequestHandlerMiddlewares (hidden)
Updates the provided list of headers to the response
Updates the provided list of headers to the response
Attributes
- Definition Classes
- RequestHandlerMiddlewares -> HeaderModifier
- Inherited from:
- RequestHandlerMiddlewares (hidden)
Creates a middleware that updates the response produced
Creates a middleware that updates the response produced
Attributes
- Inherited from:
- RequestHandlerMiddlewares (hidden)
Attributes
- Inherited from:
- RequestHandlerMiddlewares (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
Attributes
- Inherited from:
- RequestHandlerMiddlewares (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:
- RequestHandlerMiddlewares (hidden)
Attributes
- Inherited from:
- RequestHandlerMiddlewares (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:
- RequestHandlerMiddlewares (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:
- RequestHandlerMiddlewares (hidden)
Applies the middleware only if status matches the condition
Applies the middleware only if status matches the condition
Attributes
- Inherited from:
- RequestHandlerMiddlewares (hidden)
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier