IODirectives

pl.iterators.stir.server.directives.IODirectives
See theIODirectives companion object
trait IODirectives

Attributes

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

Members list

Value members

Concrete methods

"Unwraps" a IO[T] and runs the inner route when the future has failed with the future's failure exception as an extraction of type Throwable. If the future succeeds the request is completed using the values marshaller (This directive therefore requires a marshaller for the futures type to be implicitly available.)

"Unwraps" a IO[T] and runs the inner route when the future has failed with the future's failure exception as an extraction of type Throwable. If the future succeeds the request is completed using the values marshaller (This directive therefore requires a marshaller for the futures type to be implicitly available.)

Attributes

Source
IODirectives.scala
def onComplete[T](io: => IO[T]): Directive1[Try[T]]

"Unwraps" a IO[T] and runs the inner route after io completion with the io's value as an extraction of type Try[T].

"Unwraps" a IO[T] and runs the inner route after io completion with the io's value as an extraction of type Try[T].

Attributes

Source
IODirectives.scala
def onSuccess(magnet: OnSuccessMagnet): Directive[magnet.Out]

"Unwraps" a IO[T] and runs the inner route after future completion with the future's value as an extraction of type T. If the future fails its failure Throwable is bubbled up to the nearest ExceptionHandler. If type T is already a Tuple it is directly expanded into the respective number of extractions.

"Unwraps" a IO[T] and runs the inner route after future completion with the future's value as an extraction of type T. If the future fails its failure Throwable is bubbled up to the nearest ExceptionHandler. If type T is already a Tuple it is directly expanded into the respective number of extractions.

Attributes

Source
IODirectives.scala