object BasicDirectives extends BasicDirectives
- Source
- BasicDirectives.scala
- Grouped
- Alphabetic
- By Inheritance
- BasicDirectives
- BasicDirectives
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def cancelRejection(rejection: Rejection): Directive0
Adds a TransformationRejection cancelling all rejections equal to the given one to the list of rejections potentially coming back from the inner route.
Adds a TransformationRejection cancelling all rejections equal to the given one to the list of rejections potentially coming back from the inner route.
- Definition Classes
- BasicDirectives
- def cancelRejections(cancelFilter: (Rejection) => Boolean): Directive0
Adds a TransformationRejection cancelling all rejections for which the given filter function returns true to the list of rejections potentially coming back from the inner route.
Adds a TransformationRejection cancelling all rejections for which the given filter function returns true to the list of rejections potentially coming back from the inner route.
- Definition Classes
- BasicDirectives
- def cancelRejections(classes: Class[_]*): Directive0
Adds a TransformationRejection cancelling all rejections of one of the given classes to the list of rejections potentially coming back from the inner route.
Adds a TransformationRejection cancelling all rejections of one of the given classes to the list of rejections potentially coming back from the inner route.
- Definition Classes
- BasicDirectives
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def extract[T](f: (RequestContext) => T): Directive1[T]
Extracts a single value using the given function.
Extracts a single value using the given function.
- Definition Classes
- BasicDirectives
- def extractActorSystem: Directive1[ActorSystem]
Extracts the akka.actor.ActorSystem if the available Materializer is an akka.stream.ActorMaterializer.
Extracts the akka.actor.ActorSystem if the available Materializer is an akka.stream.ActorMaterializer. Otherwise throws an exception as it won't be able to extract the system from arbitrary materializers.
- Definition Classes
- BasicDirectives
- def extractDataBytes: Directive1[Source[ByteString, Any]]
Extracts the entities
dataBytes
akka.stream.scaladsl.Source from the akka.http.scaladsl.server.RequestContext.Extracts the entities
dataBytes
akka.stream.scaladsl.Source from the akka.http.scaladsl.server.RequestContext.- Definition Classes
- BasicDirectives
- def extractExecutionContext: Directive1[ExecutionContextExecutor]
Extracts the scala.concurrent.ExecutionContextExecutor from the akka.http.scaladsl.server.RequestContext.
Extracts the scala.concurrent.ExecutionContextExecutor from the akka.http.scaladsl.server.RequestContext.
- Definition Classes
- BasicDirectives
- def extractLog: Directive1[LoggingAdapter]
Extracts the akka.event.LoggingAdapter from the akka.http.scaladsl.server.RequestContext.
Extracts the akka.event.LoggingAdapter from the akka.http.scaladsl.server.RequestContext.
- Definition Classes
- BasicDirectives
- def extractMatchedPath: Directive1[Path]
Extracts the already matched path from the RequestContext.
Extracts the already matched path from the RequestContext.
- Definition Classes
- BasicDirectives
- def extractMaterializer: Directive1[Materializer]
Extracts the akka.stream.Materializer from the akka.http.scaladsl.server.RequestContext.
Extracts the akka.stream.Materializer from the akka.http.scaladsl.server.RequestContext.
- Definition Classes
- BasicDirectives
- def extractParserSettings: Directive1[ParserSettings]
Extracts the akka.http.scaladsl.settings.ParserSettings from the akka.http.scaladsl.server.RequestContext.
Extracts the akka.http.scaladsl.settings.ParserSettings from the akka.http.scaladsl.server.RequestContext.
- Definition Classes
- BasicDirectives
- def extractRequest: Directive1[HttpRequest]
Extracts the current HttpRequest instance.
Extracts the current HttpRequest instance.
- Definition Classes
- BasicDirectives
- def extractRequestContext: Directive1[RequestContext]
Extracts the akka.http.scaladsl.server.RequestContext itself.
Extracts the akka.http.scaladsl.server.RequestContext itself.
- Definition Classes
- BasicDirectives
- def extractRequestEntity: Directive1[RequestEntity]
Extracts the akka.http.scaladsl.model.RequestEntity from the akka.http.scaladsl.server.RequestContext.
Extracts the akka.http.scaladsl.model.RequestEntity from the akka.http.scaladsl.server.RequestContext.
- Definition Classes
- BasicDirectives
- def extractSettings: Directive1[RoutingSettings]
Extracts the RoutingSettings from the akka.http.scaladsl.server.RequestContext.
Extracts the RoutingSettings from the akka.http.scaladsl.server.RequestContext.
- Definition Classes
- BasicDirectives
- def extractStrictEntity(timeout: FiniteDuration, maxBytes: Long): Directive1[Strict]
WARNING: This will read the entire request entity into memory and effectively disable streaming.
WARNING: This will read the entire request entity into memory and effectively disable streaming.
To help protect against excessive memory use, the request will be aborted if the request is larger than allowed by the
akka.http.parsing.max-to-strict-bytes
configuration setting.Converts the HttpEntity from the akka.http.scaladsl.server.RequestContext into an akka.http.scaladsl.model.HttpEntity.Strict and extracts it, or fails the route if unable to drain the entire request body within the timeout.
- timeout
The directive is failed if the stream isn't completed after the given timeout.
- Definition Classes
- BasicDirectives
- def extractStrictEntity(timeout: FiniteDuration): Directive1[Strict]
WARNING: This will read the entire request entity into memory and effectively disable streaming.
WARNING: This will read the entire request entity into memory and effectively disable streaming.
To help protect against excessive memory use, the request will be aborted if the request is larger than allowed by the
akka.http.parsing.max-to-strict-bytes
configuration setting.Converts the HttpEntity from the akka.http.scaladsl.server.RequestContext into an akka.http.scaladsl.model.HttpEntity.Strict and extracts it, or fails the route if unable to drain the entire request body within the timeout.
- timeout
The directive is failed if the stream isn't completed after the given timeout.
- Definition Classes
- BasicDirectives
- def extractUnmatchedPath: Directive1[Path]
Extracts the yet unmatched path from the RequestContext.
Extracts the yet unmatched path from the RequestContext.
- Definition Classes
- BasicDirectives
- def extractUri: Directive1[Uri]
Extracts the complete request URI.
Extracts the complete request URI.
- Definition Classes
- BasicDirectives
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mapInnerRoute(f: (Route) => Route): Directive0
- Definition Classes
- BasicDirectives
- def mapRejections(f: (Seq[Rejection]) => Seq[Rejection]): Directive0
- Definition Classes
- BasicDirectives
- def mapRequest(f: (HttpRequest) => HttpRequest): Directive0
- Definition Classes
- BasicDirectives
- def mapRequestContext(f: (RequestContext) => RequestContext): Directive0
- Definition Classes
- BasicDirectives
- def mapResponse(f: (HttpResponse) => HttpResponse): Directive0
- Definition Classes
- BasicDirectives
- def mapResponseEntity(f: (ResponseEntity) => ResponseEntity): Directive0
- Definition Classes
- BasicDirectives
- def mapResponseHeaders(f: (Seq[HttpHeader]) => Seq[HttpHeader]): Directive0
- Definition Classes
- BasicDirectives
- def mapRouteResult(f: (RouteResult) => RouteResult): Directive0
- Definition Classes
- BasicDirectives
- def mapRouteResultFuture(f: (Future[RouteResult]) => Future[RouteResult]): Directive0
- Definition Classes
- BasicDirectives
- def mapRouteResultPF(f: PartialFunction[RouteResult, RouteResult]): Directive0
- Definition Classes
- BasicDirectives
- def mapRouteResultWith(f: (RouteResult) => Future[RouteResult]): Directive0
- Definition Classes
- BasicDirectives
- def mapRouteResultWithPF(f: PartialFunction[RouteResult, Future[RouteResult]]): Directive0
- Definition Classes
- BasicDirectives
- def mapSettings(f: (RoutingSettings) => RoutingSettings): Directive0
Runs the inner route with settings mapped by the given function.
Runs the inner route with settings mapped by the given function.
- Definition Classes
- BasicDirectives
- def mapUnmatchedPath(f: (Path) => Path): Directive0
Transforms the unmatchedPath of the RequestContext using the given function.
Transforms the unmatchedPath of the RequestContext using the given function.
- Definition Classes
- BasicDirectives
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def pass: Directive0
A Directive0 that always passes the request on to its inner route (i.e.
A Directive0 that always passes the request on to its inner route (i.e. does nothing with the request or the response).
- Definition Classes
- BasicDirectives
- def provide[T](value: T): Directive1[T]
Injects the given value into a directive.
Injects the given value into a directive.
- Definition Classes
- BasicDirectives
- def recoverRejections(f: (Seq[Rejection]) => RouteResult): Directive0
- Definition Classes
- BasicDirectives
- def recoverRejectionsWith(f: (Seq[Rejection]) => Future[RouteResult]): Directive0
- Definition Classes
- BasicDirectives
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def textract[L](f: (RequestContext) => L)(implicit arg0: Tuple[L]): Directive[L]
Extracts a number of values using the given function.
Extracts a number of values using the given function.
- Definition Classes
- BasicDirectives
- def toStrictEntity(timeout: FiniteDuration, maxBytes: Long): Directive0
WARNING: This will read the entire request entity into memory and effectively disable streaming.
WARNING: This will read the entire request entity into memory and effectively disable streaming.
To help protect against excessive memory use, the request will be aborted if the request is larger than allowed by the
akka.http.parsing.max-to-strict-bytes
configuration setting.Extracts the akka.http.scaladsl.server.RequestContext itself with the strict HTTP entity, or fails the route if unable to drain the entire request body within the timeout.
- timeout
The directive is failed if the stream isn't completed after the given timeout.
- Definition Classes
- BasicDirectives
- def toStrictEntity(timeout: FiniteDuration): Directive0
WARNING: This will read the entire request entity into memory and effectively disable streaming.
WARNING: This will read the entire request entity into memory and effectively disable streaming.
To help protect against excessive memory use, the request will be aborted if the request is larger than allowed by the
akka.http.parsing.max-to-strict-bytes
configuration setting.Extracts the akka.http.scaladsl.server.RequestContext itself with the strict HTTP entity, or fails the route if unable to drain the entire request body within the timeout.
- timeout
The directive is failed if the stream isn't completed after the given timeout.
- Definition Classes
- BasicDirectives
- def toString(): String
- Definition Classes
- AnyRef → Any
- def tprovide[L](values: L)(implicit arg0: Tuple[L]): Directive[L]
Injects the given values into a directive.
Injects the given values into a directive.
- Definition Classes
- BasicDirectives
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withExecutionContext(ec: ExecutionContextExecutor): Directive0
Runs its inner route with the given alternative scala.concurrent.ExecutionContextExecutor.
Runs its inner route with the given alternative scala.concurrent.ExecutionContextExecutor.
- Definition Classes
- BasicDirectives
- def withLog(log: LoggingAdapter): Directive0
Runs its inner route with the given alternative akka.event.LoggingAdapter.
Runs its inner route with the given alternative akka.event.LoggingAdapter.
- Definition Classes
- BasicDirectives
- def withMaterializer(materializer: Materializer): Directive0
Runs its inner route with the given alternative akka.stream.Materializer.
Runs its inner route with the given alternative akka.stream.Materializer.
- Definition Classes
- BasicDirectives
- def withSettings(settings: RoutingSettings): Directive0
Runs its inner route with the given alternative RoutingSettings.
Runs its inner route with the given alternative RoutingSettings.
- Definition Classes
- BasicDirectives