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
- Companion
- object
- Graph
-
- Supertypes
- Self type
-
Members list
Value members
Concrete methods
Combines this Routes with the specified Routes. In case of route conflicts, the new Routes take precedence over the current Routes.
Combines this Routes with the specified Routes. In case of route conflicts, the new Routes take precedence over the current Routes.
Attributes
Prepend the specified route.
Prepend the specified route.
Attributes
Appends the specified route.
Appends the specified route.
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
Handles all typed errors in the routes by converting them into responses. This method can be used to convert routes that do not handle their errors into ones that do handle their errors.
Handles all typed errors in the routes by converting them into responses. This method can be used to convert routes that do not handle their errors into ones that do handle their errors.
Attributes
Handles all typed errors, as well as all non-recoverable errors, by converting them into responses. This method can be used to convert routes that do not handle their errors into ones that do handle their errors.
Handles all typed errors, as well as all non-recoverable errors, by converting them into responses. This method can be used to convert routes that do not handle their errors into ones that do handle their errors.
Attributes
Handles all typed errors, as well as all non-recoverable errors, by converting them into a ZIO effect that produces the response. This method can be used to convert routes that do not handle their errors into ones that do handle their errors.
Handles all typed errors, as well as all non-recoverable errors, by converting them into a ZIO effect that produces the response. This method can be used to convert routes that do not handle their errors into ones that do handle their errors.
Attributes
Handles all typed errors in the routes by converting them into responses, taking into account the request that caused the error. This method can be used to convert routes that do not handle their errors into ones that do handle their errors.
Handles all typed errors in the routes by converting them into responses, taking into account the request that caused the error. This method can be used to convert routes that do not handle their errors into ones that do handle their errors.
Attributes
Handles all typed errors in the routes by converting them into responses, taking into account the request that caused the error. This method can be used to convert routes that do not handle their errors into ones that do handle their errors.
Handles all typed errors in the routes by converting them into responses, taking into account the request that caused the error. This method can be used to convert routes that do not handle their errors into ones that do handle their errors.
Attributes
Handles all typed errors, as well as all non-recoverable errors, by converting them into a ZIO effect that produces the response, taking into account the request that caused the error. This method can be used to convert routes that do not handle their errors into ones that do handle their errors.
Handles all typed errors, as well as all non-recoverable errors, by converting them into a ZIO effect that produces the response, taking into account the request that caused the error. This method can be used to convert routes that do not handle their errors into ones that do handle their errors.
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
Allows the transformation of the Err type through a function allowing one to build up Routes in Stages delegates to the Route.
Allows the transformation of the Err type through a function allowing one to build up Routes in Stages delegates to the Route.
Attributes
Allows the transformation of the Err type through an Effectful program allowing one to build up Routes in Stages delegates to the Route.
Allows the transformation of the Err type through an Effectful program allowing one to build up Routes in Stages delegates to the Route.
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 new routes that automatically translate all failures into responses, using best-effort heuristics to determine the appropriate HTTP status code, and attaching error details using the HTTP header Warning.
Returns new routes that automatically translate all failures into responses, using best-effort heuristics to determine the appropriate HTTP status code, and attaching error details using the HTTP header Warning.
Attributes
A shortcut for Server.install(routes) *> ZIO.never
A shortcut for Server.install(routes) *> ZIO.never
Attributes
Effectfully peeks at the unhandled failure cause of this Routes.
Effectfully peeks at the unhandled failure cause of this Routes.
Attributes
Effectfully peeks at the unhandled failure of this Routes.
Effectfully peeks at the unhandled failure of this Routes.
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
Converts the HTTP application into a request handler.
Converts the HTTP application into a request handler.
Attributes
Returns new Routes whose handlers are transformed by the specified function.
Returns new Routes whose handlers are transformed by the specified function.