spray.routing

RequestContext

case class RequestContext(request: HttpRequest, responder: ActorRef, unmatchedPath: Path) extends Product with Serializable

Immutable object encapsulating the context of an spray.http.HttpRequest as it flows through a spray Route structure.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RequestContext
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RequestContext(request: HttpRequest, responder: ActorRef, unmatchedPath: Path)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def complete[T](obj: T)(implicit marshaller: ToResponseMarshaller[T]): Unit

    Completes the request with status "200 Ok" and the response entity created by marshalling the given object using the in-scope marshaller for the type.

  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def failWith(error: Throwable): Unit

    Bubbles the given error up the response chain where it is dealt with by the closest handleExceptions directive and its ExceptionHandler, unless the error is a RejectionError.

    Bubbles the given error up the response chain where it is dealt with by the closest handleExceptions directive and its ExceptionHandler, unless the error is a RejectionError. In this case the wrapped rejection is unpacked and "executed".

  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  17. def redirect(uri: Uri, redirectionType: Redirection): Unit

    Completes the request with redirection response of the given type to the given URI.

  18. def reject(rejections: Rejection*): Unit

    Rejects the request with the given rejections.

  19. def reject(rejection: Rejection): Unit

    Rejects the request with the given rejections.

  20. val request: HttpRequest

  21. val responder: ActorRef

  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. val unmatchedPath: Path

  24. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. def withContentNegotiationDisabled: RequestContext

    Removes a potentially existing Accept header from the request headers.

  28. def withDefaultSender(defaultSender: ActorRef): RequestContext

    Returns a copy of this context that automatically sets the sender of all messages to its responder to the given one, if no explicit sender is passed along from upstream.

  29. def withHttpResponseEntityMapped(f: (HttpEntity) ⇒ HttpEntity): RequestContext

    Returns a copy of this context with the given response transformation function chained into the response chain.

  30. def withHttpResponseHeadersMapped(f: (List[HttpHeader]) ⇒ List[HttpHeader]): RequestContext

    Returns a copy of this context with the given response transformation function chained into the response chain.

  31. def withHttpResponseMapped(f: (HttpResponse) ⇒ HttpResponse): RequestContext

    Returns a copy of this context with the given response transformation function chained into the response chain.

  32. def withHttpResponsePartMapped(f: (HttpResponsePart) ⇒ HttpResponsePart): RequestContext

    Returns a copy of this context with the given response transformation function chained into the response chain.

  33. def withHttpResponsePartMultiplied(f: (HttpResponsePart) ⇒ Seq[HttpResponsePart]): RequestContext

    Returns a copy of this context with the given response transformation function chained into the response chain.

  34. def withRejectionHandling(f: (List[Rejection]) ⇒ Unit): RequestContext

    Returns a copy of this context with the given rejection handling function chained into the response chain.

  35. def withRejectionsMapped(f: (List[Rejection]) ⇒ List[Rejection]): RequestContext

    Returns a copy of this context with the given rejection transformation function chained into the response chain.

  36. def withRequestMapped(f: (HttpRequest) ⇒ HttpRequest): RequestContext

    Returns a copy of this context with the HttpRequest transformed by the given function.

  37. def withResponder(newResponder: ActorRef): RequestContext

    Returns a copy of this context with responder substituted for the given one.

  38. def withResponderMapped(f: (ActorRef) ⇒ ActorRef): RequestContext

    Returns a copy of this context with the responder transformed by the given function.

  39. def withRouteResponseHandling(f: PartialFunction[Any, Unit]): RequestContext

    Returns a copy of this context with the given function handling a part of the response space.

  40. def withRouteResponseMapped(f: (Any) ⇒ Any): RequestContext

    Returns a copy of this context with the given response transformation function chained into the response chain.

  41. def withRouteResponseMappedPF(f: PartialFunction[Any, Any]): RequestContext

    Returns a copy of this context with the given response transformation function chained into the response chain.

  42. def withRouteResponseMultiplied(f: PartialFunction[Any, Seq[Any]]): RequestContext

    Returns a copy of this context with the given response transformation function chained into the response chain.

  43. def withRouteResponseRouting(f: PartialFunction[Any, (RequestContext) ⇒ Unit]): RequestContext

    Returns a copy of this context with the given response handling function chained into the response chain.

  44. def withUnmatchedPathMapped(f: (Path) ⇒ Path): RequestContext

    Returns a copy of this context with the unmatchedPath transformed by the given function.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped