cc.spray

RequestContext

case class RequestContext (request: HttpRequest, responder: (RoutingResult) ⇒ Unit, unmatchedPath: String) extends Product with Serializable

Immutable object encapsulating the context of an cc.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. Hide All
  2. Show all
  1. RequestContext
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RequestContext (request: HttpRequest, responder: (RoutingResult) ⇒ Unit, unmatchedPath: String)

Value Members

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

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

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

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

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

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

    Attributes
    final
    Definition Classes
    Any
  7. def canEqual (arg0: Any): Boolean

    Definition Classes
    RequestContext → Equals
  8. def cancelRejections (reject: (Rejection) ⇒ Boolean): RequestContext

    Returns a copy of this context that cancels all rejections matching the given predicate with a RejectionRejection.

  9. def cancelRejections [R <: Rejection] (implicit arg0: ClassManifest[R]): RequestContext

    Returns a copy of this context that cancels all rejections of type R with a RejectionRejection.

  10. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. def complete (response: HttpResponse): Unit

    Completes the request with the given cc.spray.http.HttpResponse.

  12. def complete (content: HttpContent): Unit

    Completes the request with status "200 Ok" and the given response content.

  13. def complete [A] (obj: A)(implicit arg0: Marshaller[A]): Unit

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

  14. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  15. def equals (arg0: Any): Boolean

    Definition Classes
    RequestContext → Equals → AnyRef → Any
  16. def fail (failure: HttpFailure, reason: String): Unit

    Completes the request with the given cc.spray.http.HttpFailure.

  17. def fail (failure: HttpFailure): Unit

    Completes the request with the given cc.spray.http.HttpFailure.

  18. def finalize (): Unit

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

    Attributes
    final
    Definition Classes
    AnyRef
  20. def hashCode (): Int

    Definition Classes
    RequestContext → AnyRef → Any
  21. def isInstanceOf [T0] : Boolean

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

    Attributes
    final
    Definition Classes
    AnyRef
  23. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  24. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  25. def productArity : Int

    Definition Classes
    RequestContext → Product
  26. def productElement (arg0: Int): Any

    Definition Classes
    RequestContext → Product
  27. def productIterator : Iterator[Any]

    Definition Classes
    Product
  28. def productPrefix : String

    Definition Classes
    RequestContext → Product
  29. def redirect (uri: String, redirectionType: Redirection = Found): Unit

    Completes the request with a redirection response to the given URI.

  30. def reject (rejections: Set[Rejection]): Unit

    Rejects the request with the given rejections.

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

    Rejects the request with the given rejections.

  32. val request : HttpRequest

  33. val responder : (RoutingResult) ⇒ Unit

  34. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  35. def toString (): String

    Definition Classes
    RequestContext → AnyRef → Any
  36. val unmatchedPath : String

  37. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  40. def withHttpResponseTransformed (f: (HttpResponse) ⇒ HttpResponse): RequestContext

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

  41. def withRequestTransformed (f: (HttpRequest) ⇒ HttpRequest): RequestContext

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

  42. def withResponder (newResponder: (RoutingResult) ⇒ Unit): RequestContext

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

  43. def withRoutingResultTransformed (f: (RoutingResult) ⇒ RoutingResult): RequestContext

    Returns a copy of this context with the the given RoutingResult transformation function chained into the responder.

  44. def productElements : Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any