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
- Source
- Routes.scala
- 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
- Source
- Routes.scala
Prepend the specified route.
Appends the specified route.
Attributes
- Source
- Routes.scala
Attributes
- Source
- Routes.scala
Attributes
- Source
- Routes.scala
Attributes
- Source
- Routes.scala
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
- Source
- Routes.scala
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
- Source
- Routes.scala
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
- Source
- Routes.scala
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
- Source
- Routes.scala
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
- Source
- Routes.scala
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
- Source
- Routes.scala
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
- Source
- Routes.scala
Attributes
- Source
- Routes.scala
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
- Source
- Routes.scala
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
- Source
- Routes.scala
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
- Source
- Routes.scala
Attributes
- Source
- Routes.scala
Attributes
- Source
- Routes.scala
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
- Source
- Routes.scala
Attributes
- Source
- Routes.scala
Attributes
- Source
- Routes.scala
An alias for apply.
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
- Source
- Routes.scala
A shortcut for Server.install(routes) *> ZIO.never
Effectfully peeks at the unhandled failure cause of this Routes.
Effectfully peeks at the unhandled failure of this Routes.
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
- Source
- Routes.scala
Converts the HTTP application into a request handler.
Returns new Routes whose handlers are transformed by the specified function.
Returns new Routes whose handlers are transformed by the specified function.
Attributes
- Source
- Routes.scala
Accesses the underlying tree that provides fast dispatch to handlers.
Accesses the underlying tree that provides fast dispatch to handlers.
Attributes
- Source
- Routes.scala
Concrete fields
Attributes
- Source
- Routes.scala