akka.http.scaladsl.server.directives
Calls the inner route with a tuple of extracted values of type L
.
Calls the inner route with a tuple of extracted values of type L
.
tapply
is short for "tuple-apply". Usually, you will use the regular apply
method instead,
which is added by an implicit conversion (see Directive.addDirectiveApply
).
Joins two directives into one which extracts the concatenation of its base directive extractions.
Joins two directives into one which extracts the concatenation of its base directive extractions. NOTE: Extraction joining is an O(N) operation with N being the number of extractions on the right-side.
Converts this directive into one which, instead of a tuple of type L
, creates an
instance of type A
(which is usually a case class).
Converts this directive into one which, instead of a tuple of type L
, creates an
instance of type A
(which is usually a case class).
Returns a copy of this AuthenticationDirective that will provide Some(user)
if credentials
were supplied and otherwise None
.
Creates a new directive that is able to recover from rejections that were produced by this
Directive
**before the inner route was applied**.
Creates a new directive that is able to recover from rejections that were produced by this
Directive
**before the inner route was applied**.
Variant of recover
that only recovers from rejections handled by the given PartialFunction.
Variant of recover
that only recovers from rejections handled by the given PartialFunction.
Creates a new directive of the same type, which passes if the given predicate matches the current extractions or rejects with the given rejections.
Creates a new directive of the same type, which passes if the given predicate matches the current extractions or rejects with the given rejections.
Flatmaps this directive using the given function.
Flatmaps this directive using the given function.
Maps over this directive using the given function, which can produce either a tuple or any other value (which will then we wrapped into a scala.Tuple1).
Maps over this directive using the given function, which can produce either a tuple or any other value (which will then we wrapped into a scala.Tuple1).
Creates a new akka.http.scaladsl.server.Directive0, which passes if the given predicate matches the current extractions or rejects with the given rejections.
Creates a new akka.http.scaladsl.server.Directive0, which passes if the given predicate matches the current extractions or rejects with the given rejections.
Returns a copy of this AuthenticationDirective that uses the given object as the anonymous user which will be used if no credentials were supplied in the request.
Joins two directives into one which runs the second directive if the first one rejects.
Joins two directives into one which runs the second directive if the first one rejects.
Joins two directives into one which extracts the concatenation of its base directive extractions.
Joins two directives into one which extracts the concatenation of its base directive extractions. NOTE: Extraction joining is an O(N) operation with N being the number of extractions on the right-side.
(authenticationDirective: AuthenticationDirective[T]).&(magnet)
Converts this directive into one which, instead of a tuple of type L
, creates an
instance of type A
(which is usually a case class).
Converts this directive into one which, instead of a tuple of type L
, creates an
instance of type A
(which is usually a case class).
(authenticationDirective: AuthenticationDirective[T]).as(constructor)
(authenticationDirective: AuthenticationDirective[T]).ev
Returns a copy of this AuthenticationDirective that will provide Some(user)
if credentials
were supplied and otherwise None
.
Returns a copy of this AuthenticationDirective that will provide Some(user)
if credentials
were supplied and otherwise None
.
(authenticationDirective: AuthenticationDirective[T]).optional
Creates a new directive that is able to recover from rejections that were produced by this
Directive
**before the inner route was applied**.
Creates a new directive that is able to recover from rejections that were produced by this
Directive
**before the inner route was applied**.
(authenticationDirective: AuthenticationDirective[T]).recover(recovery)(arg0)
Variant of recover
that only recovers from rejections handled by the given PartialFunction.
Variant of recover
that only recovers from rejections handled by the given PartialFunction.
(authenticationDirective: AuthenticationDirective[T]).recoverPF(recovery)(arg0)
Calls the inner route with a tuple of extracted values of type L
.
Calls the inner route with a tuple of extracted values of type L
.
tapply
is short for "tuple-apply". Usually, you will use the regular apply
method instead,
which is added by an implicit conversion (see Directive.addDirectiveApply
).
(authenticationDirective: AuthenticationDirective[T]).tapply(f)
Creates a new directive of the same type, which passes if the given predicate matches the current extractions or rejects with the given rejections.
Creates a new directive of the same type, which passes if the given predicate matches the current extractions or rejects with the given rejections.
(authenticationDirective: AuthenticationDirective[T]).tfilter(predicate, rejections)
Flatmaps this directive using the given function.
Flatmaps this directive using the given function.
(authenticationDirective: AuthenticationDirective[T]).tflatMap(f)(arg0)
Maps over this directive using the given function, which can produce either a tuple or any other value (which will then we wrapped into a scala.Tuple1).
Maps over this directive using the given function, which can produce either a tuple or any other value (which will then we wrapped into a scala.Tuple1).
(authenticationDirective: AuthenticationDirective[T]).tmap(f)(tupler)
(authenticationDirective: (In) ⇒ Route).toString()
Creates a new akka.http.scaladsl.server.Directive0, which passes if the given predicate matches the current extractions or rejects with the given rejections.
Creates a new akka.http.scaladsl.server.Directive0, which passes if the given predicate matches the current extractions or rejects with the given rejections.
(authenticationDirective: AuthenticationDirective[T]).trequire(predicate, rejections)
Returns a copy of this AuthenticationDirective that uses the given object as the anonymous user which will be used if no credentials were supplied in the request.
Returns a copy of this AuthenticationDirective that uses the given object as the anonymous user which will be used if no credentials were supplied in the request.
(authenticationDirective: AuthenticationDirective[T]).withAnonymousUser(anonymous)
Joins two directives into one which runs the second directive if the first one rejects.
Joins two directives into one which runs the second directive if the first one rejects.
(authenticationDirective: AuthenticationDirective[T]).|(that)