Transform the service to return a timeout response Status after the supplied duration if the service response is not yet ready.
Transform the service to return a timeout response Status
after the supplied duration if the service response is not yet
ready. The service response task continues to run in the
background. To interrupt a server side response safely, look at
scalaz.stream.wye.interrupt
.
Duration to wait before returning the RequestTimeOut
a custom scheduler to use for timing out the request.
If None
is provided, then a default daemon thread scheduler will be used.
HttpService to transform
Transform the service to return whichever resolves first: the provided Task[Response], or the service resposne task.
Transform the service to return whichever resolves first: the
provided Task[Response], or the service resposne task. The
service response task continues to run in the background. To
interrupt a server side response safely, look at
scalaz.stream.wye.interrupt
.
Task[Response] to race against the result of the service. This will be run for each Request
org.http4s.HttpService to transform
Transform the service to return a RequestTimeOut Status after 30 seconds.
Transform the service to return a RequestTimeOut Status after 30 seconds.
ready. The service response task continues to run in the
background. To interrupt a server side response safely, look at
scalaz.stream.wye.interrupt
.
HttpService to transform
(Since version 0.15) Use the overload that also has response and customScheduler parameters (with default values provided)