extract
Signature
def extract[T](f: RequestContext โ T): Directive1[T]
Description
The extract directive is used as a building block for Custom Directives to extract data from the RequestContext and provide it to the inner route. It is a special case for extracting one value of the more general textract directive that can be used to extract more than one value.
See Providing Values to Inner Routes for an overview of similar directives.
Example
@@snip BasicDirectivesExamplesSpec.scala { #0extract }