Package

spray

routing

Permalink

package routing

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. routing
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract class ApplyConverter[L <: HList] extends AnyRef

    Permalink
  2. abstract class ApplyConverterInstances extends AnyRef

    Permalink
  3. case class AuthenticationFailedRejection(cause: Cause, challengeHeaders: List[HttpHeader]) extends Rejection with Product with Serializable

    Permalink

    Rejection created by an spray.routing.authentication.HttpAuthenticator.

    Rejection created by an spray.routing.authentication.HttpAuthenticator. Signals that the request was rejected because the user could not be authenticated. The reason for the rejection is specified in the cause.

  4. trait ConjunctionMagnet[L <: HList] extends AnyRef

    Permalink
  5. case class CorruptRequestEncodingRejection(msg: String) extends Rejection with Product with Serializable

    Permalink

    Rejection created by decoding filters.

    Rejection created by decoding filters. Signals that the request was rejected because the requests content is corrupted.

  6. abstract class Directive[L <: HList] extends AnyRef

    Permalink
  7. type Directive0 = Directive[HNil]

    Permalink
  8. type Directive1[T] = Directive[::[T, HNil]]

    Permalink
  9. trait Directives extends RouteConcatenation with AnyParamDirectives with BasicDirectives with CacheConditionDirectives with ChunkingDirectives with CookieDirectives with DebuggingDirectives with EncodingDirectives with ExecutionDirectives with FileAndResourceDirectives with FormFieldDirectives with FutureDirectives with HeaderDirectives with HostDirectives with MarshallingDirectives with MethodDirectives with MiscDirectives with ParameterDirectives with PathDirectives with RangeDirectives with RespondWithDirectives with RouteDirectives with SchemeDirectives with SecurityDirectives

    Permalink
  10. trait ExceptionHandler extends PF

    Permalink
  11. trait HListDeserializer[L <: HList, T] extends Deserializer[L, T]

    Permalink
  12. abstract class HListDeserializerInstances extends AnyRef

    Permalink
  13. trait HListable[T] extends AnyRef

    Permalink

    Provides a way to convert a value into an HList.

    Provides a way to convert a value into an HList. If the value is already an HList then it is returned unchanged, otherwise it's wrapped into a single-element HList.

  14. trait HttpService extends HttpServiceBase

    Permalink
  15. abstract class HttpServiceActor extends Actor with HttpService

    Permalink
  16. trait HttpServiceBase extends Directives

    Permalink
  17. trait ImplicitPathMatcherConstruction extends AnyRef

    Permalink
  18. case class MalformedFormFieldRejection(fieldName: String, errorMsg: String, cause: Option[Throwable] = None) extends Rejection with Product with Serializable

    Permalink

    Rejection created by form field filters.

    Rejection created by form field filters. Signals that the request was rejected because a form field could not be interpreted.

  19. case class MalformedHeaderRejection(headerName: String, errorMsg: String, cause: Option[Throwable] = None) extends Rejection with Product with Serializable

    Permalink

    Rejection created by header directives.

    Rejection created by header directives. Signals that the request was rejected because a header value is malformed.

  20. case class MalformedQueryParamRejection(parameterName: String, errorMsg: String, cause: Option[Throwable] = None) extends Rejection with Product with Serializable

    Permalink

    Rejection created by parameter filters.

    Rejection created by parameter filters. Signals that the request was rejected because a query parameter could not be interpreted.

  21. case class MalformedRequestContentRejection(message: String, cause: Option[Throwable] = None) extends Rejection with Product with Serializable

    Permalink

    Rejection created by unmarshallers.

    Rejection created by unmarshallers. Signals that the request was rejected because there was an error while unmarshalling the request content

  22. case class MethodRejection(supported: HttpMethod) extends Rejection with Product with Serializable

    Permalink

    Rejection created by method filters.

    Rejection created by method filters. Signals that the request was rejected because the HTTP method is unsupported.

  23. case class MissingCookieRejection(cookieName: String) extends Rejection with Product with Serializable

    Permalink

    Rejection created by the cookie directive.

    Rejection created by the cookie directive. Signals that the request was rejected because a cookie was not found.

  24. case class MissingFormFieldRejection(fieldName: String) extends Rejection with Product with Serializable

    Permalink

    Rejection created by form field filters.

    Rejection created by form field filters. Signals that the request was rejected because a form field was not found.

  25. case class MissingHeaderRejection(headerName: String) extends Rejection with Product with Serializable

    Permalink

    Rejection created by header directives.

    Rejection created by header directives. Signals that the request was rejected because a required header could not be found.

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

    Permalink

    Rejection created by parameter filters.

    Rejection created by parameter filters. Signals that the request was rejected because a query parameter was not found.

  27. trait PathMatcher[L <: HList] extends (Path) ⇒ Matching[L]

    Permalink

    A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatcher.Unmatched.

  28. type PathMatcher0 = PathMatcher[HNil]

    Permalink
  29. type PathMatcher1[T] = PathMatcher[::[T, HNil]]

    Permalink
  30. trait PathMatchers extends AnyRef

    Permalink
  31. trait Prepender[P <: HList, S <: HList] extends AnyRef

    Permalink
  32. case class Rejected(rejections: List[Rejection]) extends Product with Serializable

    Permalink
  33. trait Rejection extends AnyRef

    Permalink

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

    A rejection encapsulates a specific reason why a Route was not able to handle a request. Rejections are gathered up over the course of a Route evaluation and finally converted to spray.http.HttpResponses by the handleRejections directive, if there was no way for the request to be completed.

  34. case class RejectionError(rejection: Rejection) extends Throwable with Product with Serializable

    Permalink

    A Throwable wrapping a Rejection.

    A Throwable wrapping a Rejection. Can be used for marshalling Future[T] or Try[T] instances, whose failure side is supposed to trigger a route rejection rather than an Exception that is handled by the nearest ExceptionHandler. (Custom marshallers can of course use it as well.)

  35. trait RejectionHandler extends PF

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

    Permalink

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

  37. type Route = (RequestContext) ⇒ Unit

    Permalink
  38. trait RouteConcatenation extends AnyRef

    Permalink
  39. type RouteGenerator[T] = (T) ⇒ Route

    Permalink
  40. case class RoutingSettings(verboseErrorMessages: Boolean, fileChunkingThresholdSize: Long, fileChunkingChunkSize: Int, fileGetConditional: Boolean, users: Config, renderVanityFooter: Boolean, rangeCountLimit: Int, rangeCoalescingThreshold: Long) extends Product with Serializable

    Permalink
  41. case class SchemeRejection(supported: String) extends Rejection with Product with Serializable

    Permalink

    Rejection created by scheme filters.

    Rejection created by scheme filters. Signals that the request was rejected because the Uri scheme is unsupported.

  42. trait SimpleRoutingApp extends HttpService

    Permalink
  43. abstract class StandardRoute extends Route

    Permalink

    A Route that can be implicitly converted into a Directive (fitting any signature).

  44. case class TooManyRangesRejection(maxRanges: Int) extends Rejection with Product with Serializable

    Permalink

    Rejection created by range directives.

    Rejection created by range directives. Signals that the request contains too many ranges. An irregular high number of ranges indicates a broken client or a denial of service attack.

  45. case class TransformationRejection(transform: (List[Rejection]) ⇒ List[Rejection]) extends Rejection with Product with Serializable

    Permalink

    A special Rejection that serves as a container for a transformation function on rejections.

    A special Rejection that serves as a container for a transformation function on rejections. It is used by some directives to "cancel" rejections that are added by later directives of a similar type.

    Consider this route structure for example:

    put { reject(ValidationRejection("no") } ~ get { ... }

    If this structure is applied to a PUT request the list of rejections coming back contains three elements:

    1. A ValidationRejection 2. A MethodRejection 3. A TransformationRejection holding a function filtering out the MethodRejection

    so that in the end the RejectionHandler will only see one rejection (the ValidationRejection), because the MethodRejection added by the get directive is cancelled by the put directive (since the HTTP method did indeed match.

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

    Permalink

    Rejection created by marshallers.

    Rejection created by marshallers. Signals that the request was rejected because the service is not capable of producing a response entity whose content type is accepted by the client

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

    Permalink

    Rejection created by encoding filters.

    Rejection created by encoding filters. Signals that the request was rejected because the service is not capable of producing a response entity whose content encoding is accepted by the client

  48. case class UnsatisfiableRangeRejection(unsatisfiableRanges: Seq[ByteRange], actualEntityLength: Long) extends Rejection with Product with Serializable

    Permalink

    Rejection created by range directives.

    Rejection created by range directives. Signals that the request was rejected because the requests contains only unsatisfiable ByteRanges. The actualEntityLength gives the client a hint to create satisfiable ByteRanges.

  49. case class UnsupportedRequestContentTypeRejection(errorMsg: String) extends Rejection with Product with Serializable

    Permalink

    Rejection created by unmarshallers.

    Rejection created by unmarshallers. Signals that the request was rejected because the requests content-type is unsupported.

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

    Permalink

    Rejection created by decoding filters.

    Rejection created by decoding filters. Signals that the request was rejected because the requests content encoding is unsupported.

  51. case class ValidationRejection(message: String, cause: Option[Throwable] = None) extends Rejection with Product with Serializable

    Permalink

    Rejection created by the validation directive.

Value Members

  1. object ApplyConverter extends ApplyConverterInstances

    Permalink
  2. object AuthenticationFailedRejection extends Serializable

    Permalink
  3. object AuthorizationFailedRejection extends Rejection with Product with Serializable

    Permalink

    Rejection created by the 'authorize' directive.

    Rejection created by the 'authorize' directive. Signals that the request was rejected because the user is not authorized.

  4. object ConjunctionMagnet

    Permalink
  5. object Directive

    Permalink
  6. object Directives extends Directives

    Permalink
  7. object ExceptionHandler

    Permalink
  8. object HListDeserializer extends HListDeserializerInstances

    Permalink
  9. object HListable extends LowerPriorityHListable

    Permalink
  10. object HttpService extends HttpServiceBase

    Permalink
  11. object PathMatcher extends ImplicitPathMatcherConstruction

    Permalink
  12. object PathMatchers extends PathMatchers

    Permalink
  13. object Prepender

    Permalink
  14. object RejectionHandler

    Permalink
  15. object RequestEntityExpectedRejection extends Rejection with Product with Serializable

    Permalink

    Rejection created by unmarshallers.

    Rejection created by unmarshallers. Signals that the request was rejected because an message body entity was expected but not supplied.

  16. object Route

    Permalink
  17. object RouteConcatenation extends RouteConcatenation

    Permalink
  18. object RoutingSettings extends SettingsCompanion[RoutingSettings] with Serializable

    Permalink
  19. object StandardRoute

    Permalink
  20. package authentication

    Permalink
  21. package directives

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped