Timeout
Attributes
- Source
- Timeout.scala
- Graph
-
- Supertypes
- Self type
-
Timeout.type
Members list
Value members
Concrete methods
Transform the service to return a timeout response after the given duration if the service has not yet responded.
Transform the service to return a timeout response after the given duration if the service has not yet responded. If the timeout fires, the service's response is canceled.
Value parameters
- timeout
-
Finite duration to wait before returning the provided response
Attributes
- Note
-
if the service runs uncancelable effects while responding (e.g. if service uses MonadCancel#uncancelable under the hood) and has exceeded the timeout, then the expected behavior is: - uncancelable effects will be completed naturally (regardless of how long it takes), - after that, the timeout response will be returned. To get more insights on effect cancelation, dig into the MonadCancel documentation.
- Source
- Timeout.scala
Transform the service to return a timeout response after the given duration if the service has not yet responded.
Transform the service to return a timeout response after the given duration if the service has not yet responded. If the timeout fires, the service's response is canceled.
Value parameters
- timeout
-
Finite duration to wait before returning a
503 Service Unavailable
response
Attributes
- Note
-
if the service runs uncancelable effects while responding (e.g. if service uses MonadCancel#uncancelable under the hood) and has exceeded the timeout, then the expected behavior is: - uncancelable effects will be completed naturally (regardless of how long it takes), - after that, the timeout response will be returned. To get more insights on effect cancelation, dig into the MonadCancel documentation.
- Source
- Timeout.scala
This is the same as apply, but for HttpApp
This is the same as apply, but for HttpApp
This is the same as apply, but for HttpRoutes
This is the same as apply, but for HttpRoutes