HttpRouteMiddlewares

zio.http.middleware.HttpRouteMiddlewares$

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Inherited methods

def allow(condition: Request => Boolean): HttpAppMiddleware[Any, Nothing]

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)
def allowZIO[R, Err](condition: Request => ZIO[R, Err, Boolean]): HttpAppMiddleware[R, Err]

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)
final def cors(config: CorsConfig): HttpAppMiddleware[Any, Nothing]

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)

Removes the trailing slash from the path.

Removes the trailing slash from the path.

Attributes

Inherited from:
HttpRouteMiddlewares (hidden)