An HTTP application is a collection of routes, all of whose errors have been handled through conversion into HTTP responses.
HTTP applications can be installed into a zio.http.Server, which is capable of using them to serve requests.
Attributes
Members list
Value members
Concrete methods
Combines this HTTP application with the specified HTTP application. In case of route conflicts, the routes in this HTTP application take precedence over the routes in the specified HTTP application.
Combines this HTTP application with the specified HTTP application. In case of route conflicts, the routes in this HTTP application take precedence over the routes in the specified HTTP application.
Attributes
Applies the specified route aspect to every route in the HTTP application.
Applies the specified route aspect to every route in the HTTP application.
Attributes
Executes the HTTP application with the specified request input, returning an effect that will either succeed or fail with a Response.
Executes the HTTP application with the specified request input, returning an effect that will either succeed or fail with a Response.
Attributes
Checks to see if the HTTP application may be defined at the specified request input. Note that it is still possible for an HTTP application to return a 404 Not Found response, which cannot be detected by this method. This method only checks for the presence of a handler that handles the method and path of the specified request.
Checks to see if the HTTP application may be defined at the specified request input. Note that it is still possible for an HTTP application to return a 404 Not Found response, which cannot be detected by this method. This method only checks for the presence of a handler that handles the method and path of the specified request.
Attributes
Provides the specified environment to the HTTP application, returning a new HTTP application that has no environmental requirements.
Provides the specified environment to the HTTP application, returning a new HTTP application that has no environmental requirements.
Attributes
An alias for apply
.
An alias for apply
.
Attributes
Returns a new HTTP application whose requests will be timed out after the specified duration elapses.
Returns a new HTTP application whose requests will be timed out after the specified duration elapses.
Attributes
Inherited methods
Attributes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
-
PartialFunction -> Function1
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- PartialFunction
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
Function1 -> Any
- Inherited from:
- Function1