cc

spray

package spray

Visibility
  1. Public
  2. All

Type Members

  1. case class Attach (serviceActorRef: ActorRef) extends Product with Serializable

  2. case class AuthenticationFailedRejection (realm: String) extends Rejection with Product with Serializable

    Rejection created by the 'authenticate' directive.

  3. case class AuthenticationRequiredRejection (scheme: String, realm: String, params: Map[String, String]) extends Rejection with Product with Serializable

    Rejection created by the 'authenticate' directive.

  4. class BasicHttpAuthenticator [U] extends HttpAuthenticator[U]

    The BasicHttpAuthenticator implements HTTP Basic Auth.

  5. case class BasicUserContext (username: String) extends Product with Serializable

  6. type CacheKeyer = (RequestContext) ⇒ Option[Any]

    Definition Classes
    package
  7. type ContentTypeResolver = (String, Option[HttpCharset]) ⇒ ContentType

    Definition Classes
    package
  8. case class CorruptRequestEncodingRejection (msg: String) extends Rejection with Product with Serializable

    Rejection created by decoding filters.

  9. case class Detach (serviceActorRef: ActorRef) extends Product with Serializable

  10. trait Directives extends BasicDirectives with CacheDirectives with CodecDirectives with DetachDirectives with FileAndResourceDirectives with MarshallingDirectives with MiscDirectives with ParameterDirectives with CaseClassExtractionDirectives with PathDirectives with SecurityDirectives with SimpleDirectives with SimpleParsers

    Directives is the central trait you should mix in to get access to sprays Route building directives.

  11. trait ErrorHandling extends AnyRef

  12. trait FilterResult [+T <: Product] extends AnyRef

    The FilterResult represents the two different filtering outcomes of RouteFilters: Pass or Reject

  13. type GeneralAuthenticator [U] = (RequestContext) ⇒ Either[Rejection, U]

    Definition Classes
    package
  14. trait HttpAuthenticator [U] extends GeneralAuthenticator[U]

    An HttpAuthenticator is a GeneralAuthenticator that uses credentials passed to the server via the HTTP Authorization header to authenticate the user and extract a user object.

  15. class HttpService extends HttpServiceActor with HttpServiceLogic

    The default implementation of an HttpService.

  16. trait HttpServiceActor extends Actor with ErrorHandling with Logging with PostStart

    The actor part of the HttpService.

  17. trait HttpServiceLogic extends ErrorHandling

    The logic part of the HttpService.

  18. case class MalformedQueryParamRejection (errorMsg: String, parameterName: Option[String]) extends Rejection with Product with Serializable

    Rejection created by parameter filters.

  19. case class MalformedRequestContentRejection (message: String) extends Rejection with Product with Serializable

    Rejection created by unmarshallers.

  20. type Marshaller [A] = ((ContentType) ⇒ Option[ContentType]) ⇒ Marshalling[A]

    Definition Classes
    package
  21. case class MethodRejection (supported: HttpMethod) extends Rejection with Product with Serializable

    Rejection created by method filters.

  22. case class MissingQueryParamRejection (parameterName: String) extends Rejection with Product with Serializable

    Rejection created by parameter filters.

  23. class Pass [+T <: Product] extends FilterResult[T]

  24. trait RawRequest extends AnyRef

  25. case class RawRequestContext (request: RawRequest, complete: ((RawResponse) ⇒ Unit) ⇒ Unit) extends Product with Serializable

  26. trait RawResponse extends AnyRef

  27. case class Reject (rejections: Set[Rejection]) extends RoutingResult with FilterResult[Nothing] with Product with Serializable

  28. trait Rejection extends AnyRef

    A rejection encapsulates a specific reason why a Route was not able to handle a request.

  29. case class RejectionRejection (reject: (Rejection) ⇒ Boolean) extends Rejection with Product with Serializable

    Special Rejection that is used to cancel Rejections that have been gathered up but are "obsolete" since another Route of the same type has matched the request.

  30. 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.

  31. type RequiredParameterMatcher = (Map[String, String]) ⇒ Boolean

    Definition Classes
    package
  32. case class Respond (response: HttpResponse) extends RoutingResult with Product with Serializable

  33. class RootService extends Actor with ToFromRawConverter with Logging with PostStart

    The RootService actor is the central entrypoint for HTTP requests entering the spray infrastructure.

  34. type Route = (RequestContext) ⇒ Unit

    Definition Classes
    package
  35. type RouteFilter [T <: Product] = (RequestContext) ⇒ FilterResult[T]

    Definition Classes
    package
  36. trait RoutingResult extends AnyRef

    The RoutingResult represents the two different options for the way Routes can act upon a request Respond or Reject

  37. trait SimpleConverter [A, B] extends (A) ⇒ Either[String, B]

  38. trait SimpleParser [A] extends SimpleConverter[String, A]

  39. trait SimpleParsers extends AnyRef

  40. trait ToFromRawConverter extends AnyRef

    The logic for converting RawRequests to cc.spray.http.HttpRequests and RawResponses to cc.spray.http.HttpResponses.

  41. case class UnacceptedResponseContentTypeRejection (supported: Seq[ContentType]) extends Rejection with Product with Serializable

    Rejection created by marshallers.

  42. case class UnacceptedResponseEncodingRejection (supported: HttpEncoding) extends Rejection with Product with Serializable

    Rejection created by encoding filters.

  43. type Unmarshaller [A] = (ContentType) ⇒ Unmarshalling[A]

    Definition Classes
    package
  44. case class UnsupportedRequestContentTypeRejection (supported: Seq[ContentTypeRange]) extends Rejection with Product with Serializable

    Rejection created by unmarshallers.

  45. case class UnsupportedRequestEncodingRejection (supported: HttpEncoding) extends Rejection with Product with Serializable

    Rejection created by decoding filters.

  46. type UserPassAuthenticator [U] = (Option[(String, String)]) ⇒ Option[U]

    Definition Classes
    package
  47. case class ValidationRejection (message: String) extends Rejection with Product with Serializable

    Rejection created by the validation directive.

Value Members

  1. object Attach extends Serializable

  2. object AuthorizationFailedRejection extends Rejection with Product with Serializable

    Rejection created by the 'authorize' directive.

  3. object Directives extends Directives

  4. object FromConfigUserPassAuthenticator extends UserPassAuthenticator[BasicUserContext]

    A UserPassAuthenticator that uses plain-text username/password definitions from the spray/akka config file for authentication.

  5. object HttpService extends AnyRef

  6. object Pass extends AnyRef

  7. object Reject extends Serializable

  8. object Rejections extends AnyRef

  9. object RequestEntityExpectedRejection extends Rejection with Product with Serializable

    Rejection created by unmarshallers.

  10. object SimpleConverter extends AnyRef

  11. object SimpleParsers extends SimpleParsers

  12. object SpraySettings extends AnyRef

  13. object TimeOutHandler extends AnyRef

  14. package caching

  15. package connectors

  16. package directives

  17. def make [A, U] (a: A)(f: (A) ⇒ U): A

    Definition Classes
    package
  18. def marshaller [T] (implicit m: Marshaller[T]): Marshaller[T]

    Definition Classes
    package
  19. package marshalling

  20. implicit def pimpClass [A] (clazz: Class[A]): PimpedClass[A]

    Attributes
    implicit
    Definition Classes
    package
  21. implicit def pimpFuture [F <: akka.dispatch.Future[_]] (future: F): PimpedFuture[F]

    Attributes
    implicit
    Definition Classes
    package
  22. implicit def pimpLinearSeq [A] (seq: LinearSeq[A]): PimpedLinearSeq[A]

    Attributes
    implicit
    Definition Classes
    package
  23. implicit def pimpProduct (product: Product): PimpedProduct

    Attributes
    implicit
    Definition Classes
    package
  24. implicit def pimpRegex (regex: Regex): PimpedRegex

    Attributes
    implicit
    Definition Classes
    package
  25. def simpleParser [T] (implicit sp: SimpleParser[T]): SimpleParser[T]

    Definition Classes
    package
  26. package test

  27. def unmarshaller [T] (implicit um: Unmarshaller[T]): Unmarshaller[T]

    Definition Classes
    package
  28. package utils