TimeoutDirectives

pl.iterators.stir.server.directives.TimeoutDirectives$
See theTimeoutDirectives companion trait

Attributes

Companion
trait
Source
TimeoutDirectives.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Inherited methods

Tries to set a new request timeout and handler (if provided) at the same time.

Tries to set a new request timeout and handler (if provided) at the same time.

Due to the inherent raciness it is not guaranteed that the update will be applied before the previously set timeout has expired!

Value parameters

handler

optional custom "timeout response" function. If left None, the default timeout HttpResponse will be used.

Attributes

Inherited from:
TimeoutDirectives
Source
TimeoutDirectives.scala
def withRequestTimeout(timeout: Duration, handler: Request[IO] => Response[IO]): Directive0

Tries to set a new request timeout and handler (if provided) at the same time.

Tries to set a new request timeout and handler (if provided) at the same time.

Due to the inherent raciness it is not guaranteed that the update will be applied before the previously set timeout has expired!

Value parameters

handler

optional custom "timeout response" function. If left None, the default timeout Response[IO] will be used.

Attributes

Inherited from:
TimeoutDirectives
Source
TimeoutDirectives.scala

Tries to set a new request timeout and handler (if provided) at the same time.

Tries to set a new request timeout and handler (if provided) at the same time.

Due to the inherent raciness it is not guaranteed that the update will be applied before the previously set timeout has expired!

Attributes

Inherited from:
TimeoutDirectives
Source
TimeoutDirectives.scala