spray

routing

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
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

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

  2. abstract class ApplyConverterInstances extends AnyRef

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

    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

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

    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

  7. type Directive0 = Directive[HNil]

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

  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

  10. trait ExceptionHandler extends PF

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

  12. abstract class HListDeserializerInstances extends AnyRef

  13. trait HListable[T] extends AnyRef

    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

  15. abstract class HttpServiceActor extends Actor with HttpService

  16. trait HttpServiceBase extends Directives

  17. trait ImplicitPathMatcherConstruction extends AnyRef

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

    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

    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

    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

    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

    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

    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

    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

    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

    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]

    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]

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

  30. trait PathMatchers extends AnyRef

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

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

  33. trait Rejection extends AnyRef

    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

    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

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

  37. type Route = (RequestContext) ⇒ Unit

  38. trait RouteConcatenation extends AnyRef

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

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

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

    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

  43. abstract class StandardRoute extends Route

    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

    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

    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

    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

    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

    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

    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

    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

    Rejection created by the validation directive.

Value Members

  1. object ApplyConverter extends ApplyConverterInstances

  2. object AuthenticationFailedRejection extends Serializable

  3. object AuthorizationFailedRejection extends Rejection with Product with Serializable

    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

  5. object Directive

  6. object Directives extends Directives

  7. object ExceptionHandler

  8. object HListDeserializer extends HListDeserializerInstances

  9. object HListable extends LowerPriorityHListable

  10. object HttpService extends HttpServiceBase

  11. object PathMatcher extends ImplicitPathMatcherConstruction

  12. object PathMatchers extends PathMatchers

  13. object Prepender

  14. object RejectionHandler

  15. object RequestEntityExpectedRejection extends Rejection with Product with Serializable

    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

  17. object RouteConcatenation extends RouteConcatenation

  18. object RoutingSettings extends SettingsCompanion[RoutingSettings] with Serializable

  19. object StandardRoute

  20. package authentication

  21. package directives

Inherited from AnyRef

Inherited from Any

Ungrouped