IODirectives

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

Attributes

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

Members list

Value members

Inherited 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

Inherited from:
IODirectives
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

Inherited from:
IODirectives
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

Inherited from:
IODirectives
Source
IODirectives.scala