TimeoutDirectives

pl.iterators.stir.server.directives.TimeoutDirectives
See theTimeoutDirectives companion object

Attributes

Companion
object
Source
TimeoutDirectives.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object TimeoutDirectives.type
trait Directives
object Directives.type

Members list

Value members

Concrete 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!

Attributes

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

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!

Value parameters

handler

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

Attributes

Source
TimeoutDirectives.scala