cc.spray

Directives

object Directives extends Directives

Linear Supertypes
Directives, SimpleParsers, SimpleDirectives, SecurityDirectives, PathDirectives, CaseClassExtractionDirectives, ParameterDirectives, MiscDirectives, MarshallingDirectives, DefaultUnmarshallers, DefaultMarshallers, FileAndResourceDirectives, DetachDirectives, CodecDirectives, CacheDirectives, BasicDirectives, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Directives
  2. Directives
  3. SimpleParsers
  4. SimpleDirectives
  5. SecurityDirectives
  6. PathDirectives
  7. CaseClassExtractionDirectives
  8. ParameterDirectives
  9. MiscDirectives
  10. MarshallingDirectives
  11. DefaultUnmarshallers
  12. DefaultMarshallers
  13. FileAndResourceDirectives
  14. DetachDirectives
  15. CodecDirectives
  16. CacheDirectives
  17. BasicDirectives
  18. AnyRef
  19. Any
Visibility
  1. Public
  2. All

Type Members

  1. class HttpContentExtractor extends AnyRef

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. object CharArrayMarshaller extends MarshallerBase[Array[Char]]

    Attributes
    implicit
  7. object CharArrayUnmarshaller extends UnmarshallerBase[Array[Char]]

    Attributes
    implicit
  8. object HexInt extends SimpleParser[Int]

  9. object HexLong extends SimpleParser[Long]

  10. object NodeSeqMarshaller extends MarshallerBase[NodeSeq]

    Attributes
    implicit
  11. object NodeSeqUnmarshaller extends UnmarshallerBase[NodeSeq]

    Attributes
    implicit
  12. object SimpleBooleanParser extends SimpleParser[Boolean]

    Attributes
    implicit
  13. object SimpleByteParser extends SimpleParser[Byte]

    Attributes
    implicit
  14. object SimpleDoubleParser extends SimpleParser[Double]

    Attributes
    implicit
  15. object SimpleFloatParser extends SimpleParser[Float]

    Attributes
    implicit
  16. object SimpleIntParser extends SimpleParser[Int]

    Attributes
    implicit
  17. object SimpleLongParser extends SimpleParser[Long]

    Attributes
    implicit
  18. object SimpleShortParser extends SimpleParser[Short]

    Attributes
    implicit
  19. object SimpleStringParser extends SimpleParser[String]

    Attributes
    implicit
  20. object SimpleSymbolParser extends SimpleParser[Symbol]

    Attributes
    implicit
  21. object StringMarshaller extends MarshallerBase[String]

    Attributes
    implicit
  22. object StringUnmarshaller extends UnmarshallerBase[String]

    Attributes
    implicit
  23. def as [A] (implicit arg0: Unmarshaller[A]): Unmarshaller[A]

    Returns the in-scope Unmarshaller for the given type.

    Returns the in-scope Unmarshaller for the given type.

    Definition Classes
    MarshallingDirectives
  24. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  25. def authenticate [U] (authenticator: GeneralAuthenticator[U]): SprayRoute1[U]

    Wraps its inner Route with authentication support.

    Wraps its inner Route with authentication support. Uses the given authenticator to authenticate the user and extract an object representing the users identity. It's up to the given authenticator how to deal with authentication failures of any kind.

    Definition Classes
    SecurityDirectives
  26. def authorize (check: (RequestContext) ⇒ Boolean): SprayRoute0

    Applies the given authorization check to the request.

    Applies the given authorization check to the request. If the check fails the route is rejected with an cc.spray.AuthorizationFailedRejection.

    Definition Classes
    SecurityDirectives
  27. def authorize (check: ⇒ Boolean): SprayRoute0

    Applies the given authorization check to the request.

    Applies the given authorization check to the request. If the check fails the route is rejected with an cc.spray.AuthorizationFailedRejection.

    Definition Classes
    SecurityDirectives
  28. def cache : TransformRoute

    Wraps its inner Route with caching support using a default LruCache instance (max-entries = 500, dropFraction = 20%, time-to-live: 5 minutes) and the {{UriGetCacheKeyer}} which only caches GET requests and uses the request URI as cache key.

    Wraps its inner Route with caching support using a default LruCache instance (max-entries = 500, dropFraction = 20%, time-to-live: 5 minutes) and the {{UriGetCacheKeyer}} which only caches GET requests and uses the request URI as cache key.

    Definition Classes
    CacheDirectives
  29. def cacheResults (cache: Cache[RoutingResult], keyer: CacheKeyer = CacheKeyers.UriGetCacheKeyer): TransformRoute

    Wraps its inner Route with caching support using the given Cache implementation and keyer function.

    Wraps its inner Route with caching support using the given Cache implementation and keyer function.

    Definition Classes
    CacheDirectives
  30. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  31. def content [A] (unmarshaller: Unmarshaller[A]): SprayRoute1[A]

    Returns a Route that unmarshalls the requests content using the given unmarshaller and passes it as an argument to the inner Route building function.

    Returns a Route that unmarshalls the requests content using the given unmarshaller and passes it as an argument to the inner Route building function. If the unmarshaller cannot unmarshal the request content the request is rejected with the Rejection produced by the unmarshaller.

    Definition Classes
    MarshallingDirectives
  32. def decodeRequest (decoder: Decoder): SprayRoute0

    Wraps its inner Route with decoding support using the given Decoder.

    Wraps its inner Route with decoding support using the given Decoder.

    Definition Classes
    CodecDirectives
  33. lazy val delete : SprayRoute0

    A route filter that rejects all non-DELETE requests.

    A route filter that rejects all non-DELETE requests.

    Definition Classes
    SimpleDirectives
  34. def detach : TransformRoute

    Returns a Route that executes its inner Route in the content of a newly spawned actor.

    Returns a Route that executes its inner Route in the content of a newly spawned actor.

    Definition Classes
    DetachDirectives
  35. def detachDispatcher : MessageDispatcher

    Definition Classes
    DetachDirectives
  36. def encodeResponse (encoder: Encoder): SprayRoute0

    Wraps its inner Route with encoding support using the given Encoder.

    Wraps its inner Route with encoding support using the given Encoder.

    Definition Classes
    CodecDirectives
  37. def eq (arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  39. def filter (filter: RouteFilter[Product0]): SprayRoute0

    Creates a cc.spray.SprayRoute0 from the given RouteFilter function.

    Creates a cc.spray.SprayRoute0 from the given RouteFilter function.

    Definition Classes
    BasicDirectives
  40. def filter1 [A] (filter: RouteFilter[(A)]): SprayRoute1[A]

    Created a cc.spray.SprayRoute1 from the given RouteFilter function.

    Created a cc.spray.SprayRoute1 from the given RouteFilter function.

    Definition Classes
    BasicDirectives
  41. def filter2 [A, B] (filter: RouteFilter[(A, B)]): SprayRoute2[A, B]

    Creates a cc.spray.SprayRoute2 from the given RouteFilter function.

    Creates a cc.spray.SprayRoute2 from the given RouteFilter function.

    Definition Classes
    BasicDirectives
  42. def filter3 [A, B, C] (filter: RouteFilter[(A, B, C)]): SprayRoute3[A, B, C]

    Creates a cc.spray.SprayRoute3 from the given RouteFilter function.

    Creates a cc.spray.SprayRoute3 from the given RouteFilter function.

    Definition Classes
    BasicDirectives
  43. def filter4 [A, B, C, D] (filter: RouteFilter[(A, B, C, D)]): SprayRoute4[A, B, C, D]

    Creates a cc.spray.SprayRoute4 from the given RouteFilter function.

    Creates a cc.spray.SprayRoute4 from the given RouteFilter function.

    Definition Classes
    BasicDirectives
  44. def filter5 [A, B, C, D, E] (filter: RouteFilter[(A, B, C, D, E)]): SprayRoute5[A, B, C, D, E]

    Creates a cc.spray.SprayRoute5 from the given RouteFilter function.

    Creates a cc.spray.SprayRoute5 from the given RouteFilter function.

    Definition Classes
    BasicDirectives
  45. def filter6 [A, B, C, D, E, F] (filter: RouteFilter[(A, B, C, D, E, F)]): SprayRoute6[A, B, C, D, E, F]

    Creates a cc.spray.SprayRoute6 from the given RouteFilter function.

    Creates a cc.spray.SprayRoute6 from the given RouteFilter function.

    Definition Classes
    BasicDirectives
  46. def filter7 [A, B, C, D, E, F, G] (filter: RouteFilter[(A, B, C, D, E, F, G)]): SprayRoute7[A, B, C, D, E, F, G]

    Creates a cc.spray.SprayRoute7 from the given RouteFilter function.

    Creates a cc.spray.SprayRoute7 from the given RouteFilter function.

    Definition Classes
    BasicDirectives
  47. def filter8 [A, B, C, D, E, F, G, H] (filter: RouteFilter[(A, B, C, D, E, F, G, H)]): SprayRoute8[A, B, C, D, E, F, G, H]

    Creates a cc.spray.SprayRoute8 from the given RouteFilter function.

    Creates a cc.spray.SprayRoute8 from the given RouteFilter function.

    Definition Classes
    BasicDirectives
  48. def filter9 [A, B, C, D, E, F, G, H, I] (filter: RouteFilter[(A, B, C, D, E, F, G, H, I)]): SprayRoute9[A, B, C, D, E, F, G, H, I]

    Creates a cc.spray.SprayRoute9 from the given RouteFilter function.

    Creates a cc.spray.SprayRoute9 from the given RouteFilter function.

    Definition Classes
    BasicDirectives
  49. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  50. implicit def fromString (name: String): ParameterMatcher[String]

    Attributes
    implicit
    Definition Classes
    ParameterDirectives
  51. implicit def fromSymbol (name: Symbol): ParameterMatcher[String]

    Attributes
    implicit
    Definition Classes
    ParameterDirectives
  52. lazy val get : SprayRoute0

    A route filter that rejects all non-GET requests.

    A route filter that rejects all non-GET requests.

    Definition Classes
    SimpleDirectives
  53. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  54. def getFromDirectory (directoryName: String, charset: Option[HttpCharset] = None, pathRewriter: (String) ⇒ String = identity, resolver: ContentTypeResolver = DefaultContentTypeResolver): Route

    Returns a Route that completes GET requests with the content of a file underneath the given directory.

    Returns a Route that completes GET requests with the content of a file underneath the given directory. The unmatchedPath of the RequestContext is first transformed by the given pathRewriter function before being appended to the given directoryName to build the final fileName. The actual I/O operation is running detached in the context of a newly spawned actor, so it doesn't block the current thread. If the file cannot be read the Route completes the request with a "404 NotFound" error.

    Definition Classes
    FileAndResourceDirectives
  55. def getFromFile (file: File, charset: Option[HttpCharset] = None, resolver: ContentTypeResolver = DefaultContentTypeResolver): Route

    Returns a Route that completes GET requests with the content of the given file.

    Returns a Route that completes GET requests with the content of the given file. The actual I/O operation is running detached in the context of a newly spawned actor, so it doesn't block the current thread. If the file cannot be read the Route completes the request with a "404 NotFound" error.

    Definition Classes
    FileAndResourceDirectives
  56. def getFromFileName (fileName: String, charset: Option[HttpCharset] = None, resolver: ContentTypeResolver = DefaultContentTypeResolver): Route

    Returns a Route that completes GET requests with the content of the given file.

    Returns a Route that completes GET requests with the content of the given file. The actual I/O operation is running detached in the context of a newly spawned actor, so it doesn't block the current thread. If the file cannot be read the Route completes the request with a "404 NotFound" error.

    Definition Classes
    FileAndResourceDirectives
  57. def getFromResource (resourceName: String, charset: Option[HttpCharset] = None, resolver: ContentTypeResolver = DefaultContentTypeResolver): Route

    Returns a Route that completes GET requests with the content of the given resource.

    Returns a Route that completes GET requests with the content of the given resource. The actual I/O operation is running detached in the context of a newly spawned actor, so it doesn't block the current thread. If the file cannot be read the Route completes the request with a "404 NotFound" error.

    Definition Classes
    FileAndResourceDirectives
  58. def getFromResourceDirectory (directoryName: String, charset: Option[HttpCharset] = None, pathRewriter: (String) ⇒ String = identity, resolver: ContentTypeResolver = DefaultContentTypeResolver): Route

    Same as "getFromDirectory" except that the file is not fetched from the file system but rather from a "resource directory".

    Same as "getFromDirectory" except that the file is not fetched from the file system but rather from a "resource directory".

    Definition Classes
    FileAndResourceDirectives
  59. def handleWith [A, B] (f: (A) ⇒ B)(implicit arg0: Unmarshaller[A], arg1: Marshaller[B]): Route

    Returns a Route that completes the request using the given function.

    Returns a Route that completes the request using the given function. The input to the function is produced with the in-scope unmarshaller and the result value of the function is marshalled with the in-scope marshaller.

    Definition Classes
    MarshallingDirectives
  60. def hardFail (failure: HttpFailure, reason: String = ""): Nothing

    Stops the current Route processing by throwing an HttpException that will be caught by the enclosing Actor.

    Stops the current Route processing by throwing an HttpException that will be caught by the enclosing Actor. Failures produced in this way circumvent all response processing logic that might be present (for example they cannot be cached with the 'cache' directive).

    Definition Classes
    MiscDirectives
  61. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  62. lazy val head : SprayRoute0

    A route filter that rejects all non-HEAD requests.

    A route filter that rejects all non-HEAD requests.

    Definition Classes
    SimpleDirectives
  63. def host (regex: Regex): SprayRoute1[String]

    Returns a route filter that rejects all requests with a host name that does not have a prefix matching the given regular expression.

    Returns a route filter that rejects all requests with a host name that does not have a prefix matching the given regular expression. For all matching requests the prefix string matching the regex is extracted and passed to the inner Route building function. If the regex contains a capturing group only the string matched by this group is extracted. If the regex contains more than one capturing group an IllegalArgumentException will be thrown.

    Definition Classes
    SimpleDirectives
  64. def host (predicate: (String) ⇒ Boolean): SprayRoute0

    Returns a route filter that rejects all requests for whose host name the given predicate function return false.

    Returns a route filter that rejects all requests for whose host name the given predicate function return false.

    Definition Classes
    SimpleDirectives
  65. def host (hostName: String): SprayRoute0

    Returns a route filter that rejects all requests with a host name different from the given one.

    Returns a route filter that rejects all requests with a host name different from the given one.

    Definition Classes
    SimpleDirectives
  66. def httpBasic [U] (realm: String, authenticator: UserPassAuthenticator[U]): BasicHttpAuthenticator[U]

    Convenience method for the creation of a BasicHttpAuthenticator instance.

    Convenience method for the creation of a BasicHttpAuthenticator instance.

    Definition Classes
    SecurityDirectives
  67. def instanceOf [T <: Product, A, AA, B, BB, C, CC, D, DD, E, EE, F, FF, G, GG, H, HH, I, II] (construct: (A, B, C, D, E, F, G, H, I) ⇒ T)(implicit qa: SC[AA, A], qb: SC[BB, B], qc: SC[CC, C], qd: SC[DD, D], qe: SC[EE, E], qf: SC[FF, F], qg: SC[GG, G], qh: SC[HH, H], qi: SC[II, I]): (AA, BB, CC, DD, EE, FF, GG, HH, II) ⇒ Either[String, T]

    Definition Classes
    CaseClassExtractionDirectives
  68. def instanceOf [T <: Product, A, AA, B, BB, C, CC, D, DD, E, EE, F, FF, G, GG, H, HH] (construct: (A, B, C, D, E, F, G, H) ⇒ T)(implicit qa: SC[AA, A], qb: SC[BB, B], qc: SC[CC, C], qd: SC[DD, D], qe: SC[EE, E], qf: SC[FF, F], qg: SC[GG, G], qh: SC[HH, H]): (AA, BB, CC, DD, EE, FF, GG, HH) ⇒ Either[String, T]

    Definition Classes
    CaseClassExtractionDirectives
  69. def instanceOf [T <: Product, A, AA, B, BB, C, CC, D, DD, E, EE, F, FF, G, GG] (construct: (A, B, C, D, E, F, G) ⇒ T)(implicit qa: SC[AA, A], qb: SC[BB, B], qc: SC[CC, C], qd: SC[DD, D], qe: SC[EE, E], qf: SC[FF, F], qg: SC[GG, G]): (AA, BB, CC, DD, EE, FF, GG) ⇒ Either[String, T]

    Definition Classes
    CaseClassExtractionDirectives
  70. def instanceOf [T <: Product, A, AA, B, BB, C, CC, D, DD, E, EE, F, FF] (construct: (A, B, C, D, E, F) ⇒ T)(implicit qa: SC[AA, A], qb: SC[BB, B], qc: SC[CC, C], qd: SC[DD, D], qe: SC[EE, E], qf: SC[FF, F]): (AA, BB, CC, DD, EE, FF) ⇒ Either[String, T]

    Definition Classes
    CaseClassExtractionDirectives
  71. def instanceOf [T <: Product, A, AA, B, BB, C, CC, D, DD, E, EE] (construct: (A, B, C, D, E) ⇒ T)(implicit qa: SC[AA, A], qb: SC[BB, B], qc: SC[CC, C], qd: SC[DD, D], qe: SC[EE, E]): (AA, BB, CC, DD, EE) ⇒ Either[String, T]

    Definition Classes
    CaseClassExtractionDirectives
  72. def instanceOf [T <: Product, A, AA, B, BB, C, CC, D, DD] (construct: (A, B, C, D) ⇒ T)(implicit qa: SC[AA, A], qb: SC[BB, B], qc: SC[CC, C], qd: SC[DD, D]): (AA, BB, CC, DD) ⇒ Either[String, T]

    Definition Classes
    CaseClassExtractionDirectives
  73. def instanceOf [T <: Product, A, AA, B, BB, C, CC] (construct: (A, B, C) ⇒ T)(implicit qa: SC[AA, A], qb: SC[BB, B], qc: SC[CC, C]): (AA, BB, CC) ⇒ Either[String, T]

    Definition Classes
    CaseClassExtractionDirectives
  74. def instanceOf [T <: Product, A, AA, B, BB] (construct: (A, B) ⇒ T)(implicit qa: SC[AA, A], qb: SC[BB, B]): (AA, BB) ⇒ Either[String, T]

    Definition Classes
    CaseClassExtractionDirectives
  75. def instanceOf [T <: Product, A, AA] (construct: (A) ⇒ T)(implicit qa: SC[AA, A]): (AA) ⇒ Either[String, T]

    Definition Classes
    CaseClassExtractionDirectives
  76. def instanceOf [A] (implicit arg0: Marshaller[A]): Marshaller[A]

    Returns the in-scope Marshaller for the given type.

    Returns the in-scope Marshaller for the given type.

    Definition Classes
    MarshallingDirectives
  77. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  78. def jsonpWithParameter (parameterName: String): SprayRoute0

    Wraps the inner Route with JSONP support.

    Wraps the inner Route with JSONP support. If a query parameter with the given name is present in the request and the inner Route returns content with content-type application/json the response content is wrapped with a call to a Javascript function having the name of query parameters value. Additionally the content-type is changed from application/json to application/javascript in these cases.

    Definition Classes
    MiscDirectives
  79. def method (m: HttpMethod): SprayRoute0

    Returns a route filter that rejects all requests whose HTTP method does not match the given one.

    Returns a route filter that rejects all requests whose HTTP method does not match the given one.

    Definition Classes
    SimpleDirectives
  80. def ne (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  83. def optionalContent [A] (unmarshaller: Unmarshaller[A]): SprayRoute1[Option[A]]

    Returns a Route that unmarshalls the optional request content using the given unmarshaller and passes it as an argument to the inner Route building function.

    Returns a Route that unmarshalls the optional request content using the given unmarshaller and passes it as an argument to the inner Route building function. If the unmarshaller cannot unmarshal the request content the request is rejected with the Rejection produced by the unmarshaller.

    Definition Classes
    MarshallingDirectives
  84. lazy val options : SprayRoute0

    A route filter that rejects all non-OPTIONS requests.

    A route filter that rejects all non-OPTIONS requests.

    Definition Classes
    SimpleDirectives
  85. def parameter (p: RequiredParameterMatcher): SprayRoute0

    Returns a Route that rejects the request if the query parameter with the given name cannot be found or does not have the required value.

    Returns a Route that rejects the request if the query parameter with the given name cannot be found or does not have the required value.

    Definition Classes
    ParameterDirectives
  86. def parameter [A] (pm: PM[A]): SprayRoute1[A]

    Returns a Route that rejects the request if a query parameter with the given name cannot be found.

    Returns a Route that rejects the request if a query parameter with the given name cannot be found. If it can be found the parameters value is extracted and passed as argument to the inner Route building function.

    Definition Classes
    ParameterDirectives
  87. def parameters (p: RequiredParameterMatcher, more: RequiredParameterMatcher*): SprayRoute0

    Returns a Route that rejects the request if the query parameter with the given name cannot be found or does not have the required value.

    Returns a Route that rejects the request if the query parameter with the given name cannot be found or does not have the required value.

    Definition Classes
    ParameterDirectives
  88. def parameters [A, B, C, D, E, F, G, H, I] (a: PM[A], b: PM[B], c: PM[C], d: PM[D], e: PM[E], f: PM[F], g: PM[G], h: PM[H], i: PM[I]): SprayRoute9[A, B, C, D, E, F, G, H, I]

    Returns a Route that rejects the request if the query parameters with the given names cannot be found.

    Returns a Route that rejects the request if the query parameters with the given names cannot be found. If it can be found the parameter values are extracted and passed as arguments to the inner Route building function.

    Definition Classes
    ParameterDirectives
  89. def parameters [A, B, C, D, E, F, G, H] (a: PM[A], b: PM[B], c: PM[C], d: PM[D], e: PM[E], f: PM[F], g: PM[G], h: PM[H]): SprayRoute8[A, B, C, D, E, F, G, H]

    Returns a Route that rejects the request if the query parameters with the given names cannot be found.

    Returns a Route that rejects the request if the query parameters with the given names cannot be found. If it can be found the parameter values are extracted and passed as arguments to the inner Route building function.

    Definition Classes
    ParameterDirectives
  90. def parameters [A, B, C, D, E, F, G] (a: PM[A], b: PM[B], c: PM[C], d: PM[D], e: PM[E], f: PM[F], g: PM[G]): SprayRoute7[A, B, C, D, E, F, G]

    Returns a Route that rejects the request if the query parameters with the given names cannot be found.

    Returns a Route that rejects the request if the query parameters with the given names cannot be found. If it can be found the parameter values are extracted and passed as arguments to the inner Route building function.

    Definition Classes
    ParameterDirectives
  91. def parameters [A, B, C, D, E, F] (a: PM[A], b: PM[B], c: PM[C], d: PM[D], e: PM[E], f: PM[F]): SprayRoute6[A, B, C, D, E, F]

    Returns a Route that rejects the request if the query parameters with the given names cannot be found.

    Returns a Route that rejects the request if the query parameters with the given names cannot be found. If it can be found the parameter values are extracted and passed as arguments to the inner Route building function.

    Definition Classes
    ParameterDirectives
  92. def parameters [A, B, C, D, E] (a: PM[A], b: PM[B], c: PM[C], d: PM[D], e: PM[E]): SprayRoute5[A, B, C, D, E]

    Returns a Route that rejects the request if the query parameters with the given names cannot be found.

    Returns a Route that rejects the request if the query parameters with the given names cannot be found. If it can be found the parameter values are extracted and passed as arguments to the inner Route building function.

    Definition Classes
    ParameterDirectives
  93. def parameters [A, B, C, D] (a: PM[A], b: PM[B], c: PM[C], d: PM[D]): SprayRoute4[A, B, C, D]

    Returns a Route that rejects the request if the query parameters with the given names cannot be found.

    Returns a Route that rejects the request if the query parameters with the given names cannot be found. If it can be found the parameter values are extracted and passed as arguments to the inner Route building function.

    Definition Classes
    ParameterDirectives
  94. def parameters [A, B, C] (a: PM[A], b: PM[B], c: PM[C]): SprayRoute3[A, B, C]

    Returns a Route that rejects the request if the query parameters with the given names cannot be found.

    Returns a Route that rejects the request if the query parameters with the given names cannot be found. If it can be found the parameter values are extracted and passed as arguments to the inner Route building function.

    Definition Classes
    ParameterDirectives
  95. def parameters [A, B] (a: PM[A], b: PM[B]): SprayRoute2[A, B]

    Returns a Route that rejects the request if the query parameters with the given names cannot be found.

    Returns a Route that rejects the request if the query parameters with the given names cannot be found. If it can be found the parameter values are extracted and passed as arguments to the inner Route building function.

    Definition Classes
    ParameterDirectives
  96. def parameters [A] (a: PM[A]): SprayRoute1[A]

    Returns a Route that rejects the request if a query parameter with the given name cannot be found.

    Returns a Route that rejects the request if a query parameter with the given name cannot be found. If it can be found the parameters value is extracted and passed as argument to the inner Route building function.

    Definition Classes
    ParameterDirectives
  97. def path [A, B, C, D, E] (pattern: PathMatcher5[A, B, C, D, E]): SprayRoute5[A, B, C, D, E]

    Returns a Route that rejects the request if the unmatchedPath of the RequestContext does not match the given PathMatcher.

    Returns a Route that rejects the request if the unmatchedPath of the RequestContext does not match the given PathMatcher. If it does match the values extracted by the matcher are passed to the inner Route building function.

    Definition Classes
    PathDirectives
  98. def path [A, B, C, D] (pattern: PathMatcher4[A, B, C, D]): SprayRoute4[A, B, C, D]

    Returns a Route that rejects the request if the unmatchedPath of the RequestContext does not match the given PathMatcher.

    Returns a Route that rejects the request if the unmatchedPath of the RequestContext does not match the given PathMatcher. If it does match the values extracted by the matcher are passed to the inner Route building function.

    Definition Classes
    PathDirectives
  99. def path [A, B, C] (pattern: PathMatcher3[A, B, C]): SprayRoute3[A, B, C]

    Returns a Route that rejects the request if the unmatchedPath of the RequestContext does not match the given PathMatcher.

    Returns a Route that rejects the request if the unmatchedPath of the RequestContext does not match the given PathMatcher. If it does match the values extracted by the matcher are passed to the inner Route building function.

    Definition Classes
    PathDirectives
  100. def path [A, B] (pattern: PathMatcher2[A, B]): SprayRoute2[A, B]

    Returns a Route that rejects the request if the unmatchedPath of the RequestContext does not match the given PathMatcher.

    Returns a Route that rejects the request if the unmatchedPath of the RequestContext does not match the given PathMatcher. If it does match the values extracted by the matcher are passed to the inner Route building function.

    Definition Classes
    PathDirectives
  101. def path [A] (pattern: PathMatcher1[A]): SprayRoute1[A]

    Returns a Route that rejects the request if the unmatchedPath of the RequestContext does not match the given PathMatcher.

    Returns a Route that rejects the request if the unmatchedPath of the RequestContext does not match the given PathMatcher. If it does match the value extracted by the matcher is passed to the inner Route building function.

    Definition Classes
    PathDirectives
  102. def path (pattern: PathMatcher0): SprayRoute0

    Returns a Route that rejects the request if the unmatchedPath of the RequestContext does not match the given PathMatcher.

    Returns a Route that rejects the request if the unmatchedPath of the RequestContext does not match the given PathMatcher.

    Definition Classes
    PathDirectives
  103. def pathPrefix [A, B, C, D, E] (pattern: PathMatcher5[A, B, C, D, E]): SprayRoute5[A, B, C, D, E]

    Returns a Route that rejects the request if the unmatchedPath of the RequestContext does have a prefix that matches the given PathMatcher.

    Returns a Route that rejects the request if the unmatchedPath of the RequestContext does have a prefix that matches the given PathMatcher. If it does match the values extracted by the matcher are passed to the inner Route building function.

    Definition Classes
    PathDirectives
  104. def pathPrefix [A, B, C, D] (pattern: PathMatcher4[A, B, C, D]): SprayRoute4[A, B, C, D]

    Returns a Route that rejects the request if the unmatchedPath of the RequestContext does have a prefix that matches the given PathMatcher.

    Returns a Route that rejects the request if the unmatchedPath of the RequestContext does have a prefix that matches the given PathMatcher. If it does match the values extracted by the matcher are passed to the inner Route building function.

    Definition Classes
    PathDirectives
  105. def pathPrefix [A, B, C] (pattern: PathMatcher3[A, B, C]): SprayRoute3[A, B, C]

    Returns a Route that rejects the request if the unmatchedPath of the RequestContext does have a prefix that matches the given PathMatcher.

    Returns a Route that rejects the request if the unmatchedPath of the RequestContext does have a prefix that matches the given PathMatcher. If it does match the values extracted by the matcher are passed to the inner Route building function.

    Definition Classes
    PathDirectives
  106. def pathPrefix [A, B] (pattern: PathMatcher2[A, B]): SprayRoute2[A, B]

    Returns a Route that rejects the request if the unmatchedPath of the RequestContext does have a prefix that matches the given PathMatcher.

    Returns a Route that rejects the request if the unmatchedPath of the RequestContext does have a prefix that matches the given PathMatcher. If it does match the values extracted by the matcher are passed to the inner Route building function.

    Definition Classes
    PathDirectives
  107. def pathPrefix [A] (pattern: PathMatcher1[A]): SprayRoute1[A]

    Returns a Route that rejects the request if the unmatchedPath of the RequestContext does have a prefix that matches the given PathMatcher.

    Returns a Route that rejects the request if the unmatchedPath of the RequestContext does have a prefix that matches the given PathMatcher. If it does match the value extracted by the matcher is passed to the inner Route building function.

    Definition Classes
    PathDirectives
  108. def pathPrefix (pattern: PathMatcher0): SprayRoute0

    Returns a Route that rejects the request if the unmatchedPath of the RequestContext does have a prefix that matches the given PathMatcher.

    Returns a Route that rejects the request if the unmatchedPath of the RequestContext does have a prefix that matches the given PathMatcher.

    Definition Classes
    PathDirectives
  109. implicit def pimpHttpContentWithAs1 (c: HttpContent): HttpContentExtractor

    Attributes
    implicit
    Definition Classes
    DefaultUnmarshallers
  110. implicit def pimpHttpContentWithAs2 (c: Option[HttpContent]): HttpContentExtractor

    Attributes
    implicit
    Definition Classes
    DefaultUnmarshallers
  111. implicit def pimpRouteWithConcatenation (route: Route): RouteConcatenation

    Attributes
    implicit
    Definition Classes
    MiscDirectives
  112. implicit def pimpSprayRoute1 [A] (route: SprayRoute1[A]): PimpedSprayRoute1[A]

    Attributes
    implicit
    Definition Classes
    CaseClassExtractionDirectives
  113. implicit def pimpSprayRoute2 [A, B] (route: SprayRoute2[A, B]): PimpedSprayRoute2[A, B]

    Attributes
    implicit
    Definition Classes
    CaseClassExtractionDirectives
  114. implicit def pimpSprayRoute3 [A, B, C] (route: SprayRoute3[A, B, C]): PimpedSprayRoute3[A, B, C]

    Attributes
    implicit
    Definition Classes
    CaseClassExtractionDirectives
  115. implicit def pimpSprayRoute4 [A, B, C, D] (route: SprayRoute4[A, B, C, D]): PimpedSprayRoute4[A, B, C, D]

    Attributes
    implicit
    Definition Classes
    CaseClassExtractionDirectives
  116. implicit def pimpSprayRoute5 [A, B, C, D, E] (route: SprayRoute5[A, B, C, D, E]): PimpedSprayRoute5[A, B, C, D, E]

    Attributes
    implicit
    Definition Classes
    CaseClassExtractionDirectives
  117. implicit def pimpSprayRoute6 [A, B, C, D, E, F] (route: SprayRoute6[A, B, C, D, E, F]): PimpedSprayRoute6[A, B, C, D, E, F]

    Attributes
    implicit
    Definition Classes
    CaseClassExtractionDirectives
  118. implicit def pimpSprayRoute7 [A, B, C, D, E, F, G] (route: SprayRoute7[A, B, C, D, E, F, G]): PimpedSprayRoute7[A, B, C, D, E, F, G]

    Attributes
    implicit
    Definition Classes
    CaseClassExtractionDirectives
  119. implicit def pimpSprayRoute8 [A, B, C, D, E, F, G, H] (route: SprayRoute8[A, B, C, D, E, F, G, H]): PimpedSprayRoute8[A, B, C, D, E, F, G, H]

    Attributes
    implicit
    Definition Classes
    CaseClassExtractionDirectives
  120. implicit def pimpSprayRoute9 [A, B, C, D, E, F, G, H, I] (route: SprayRoute9[A, B, C, D, E, F, G, H, I]): PimpedSprayRoute9[A, B, C, D, E, F, G, H, I]

    Attributes
    implicit
    Definition Classes
    CaseClassExtractionDirectives
  121. lazy val post : SprayRoute0

    A route filter that rejects all non-POST requests.

    A route filter that rejects all non-POST requests.

    Definition Classes
    SimpleDirectives
  122. def produce [A] (marshaller: Marshaller[A]): SprayRoute1[(A) ⇒ Unit]

    Returns a Route that uses the given marshaller to produce a completion function that is passed to the inner route building function.

    Returns a Route that uses the given marshaller to produce a completion function that is passed to the inner route building function. You can use it do decouple marshaller resolution from the call site of the RequestContexts {{complete}} function.

    Definition Classes
    MarshallingDirectives
  123. lazy val put : SprayRoute0

    A route filter that rejects all non-PUT requests.

    A route filter that rejects all non-PUT requests.

    Definition Classes
    SimpleDirectives
  124. implicit def regex2Matcher (regex: Regex): PathMatcher1[String]

    Attributes
    implicit
    Definition Classes
    PathDirectives
  125. def respondWithContentType (contentType: ContentType): SprayRoute0

    Returns a Route that sets the content-type of non-empty, non-rejected responses of its inner Route to the given ContentType.

    Returns a Route that sets the content-type of non-empty, non-rejected responses of its inner Route to the given ContentType.

    Definition Classes
    MiscDirectives
  126. def respondWithHeader (responseHeader: HttpHeader): SprayRoute0

    Returns a Route that adds the given response header to all not-rejected responses of its inner Route.

    Returns a Route that adds the given response header to all not-rejected responses of its inner Route.

    Definition Classes
    MiscDirectives
  127. def respondWithHeaders (responseHeaders: HttpHeader*): SprayRoute0

    Returns a Route that adds the given response headers to all not-rejected responses of its inner Route.

    Returns a Route that adds the given response headers to all not-rejected responses of its inner Route.

    Definition Classes
    MiscDirectives
  128. def respondWithMediaType (mediaType: MediaType): SprayRoute0

    Returns a Route that sets the media-type of non-empty, non-rejected responses of its inner Route to the given one.

    Returns a Route that sets the media-type of non-empty, non-rejected responses of its inner Route to the given one.

    Definition Classes
    MiscDirectives
  129. def respondWithStatus (responseStatus: StatusCode): SprayRoute0

    Returns a Route that sets the given response status on all not-rejected responses of its inner Route.

    Returns a Route that sets the given response status on all not-rejected responses of its inner Route.

    Definition Classes
    MiscDirectives
  130. def responseFromFile (file: File, charset: Option[HttpCharset] = None, resolver: ContentTypeResolver = DefaultContentTypeResolver): HttpResponse

    Builds an HttpResponse from the content of the given file.

    Builds an HttpResponse from the content of the given file. If the file cannot be read a "404 NotFound" response is returned. Note that this method is using disk IO which may block the current thread.

    Definition Classes
    FileAndResourceDirectives
  131. def responseFromFileName (fileName: String, charset: Option[HttpCharset] = None, resolver: ContentTypeResolver = DefaultContentTypeResolver): HttpResponse

    Builds an HttpResponse from the content of the given file.

    Builds an HttpResponse from the content of the given file. If the file cannot be read a "404 NotFound" response is returned. Note that this method is using disk IO which may block the current thread.

    Definition Classes
    FileAndResourceDirectives
  132. def responseFromResource (resourceName: String, charset: Option[HttpCharset] = None, resolver: ContentTypeResolver = DefaultContentTypeResolver): HttpResponse

    Builds an HttpResponse from the content of the given classpath resource.

    Builds an HttpResponse from the content of the given classpath resource. If the resource cannot be read a "404 NotFound" response is returned. Note that this method is using disk IO which may block the current thread.

    Definition Classes
    FileAndResourceDirectives
  133. implicit def string2Matcher (s: String): PathMatcher0

    Attributes
    implicit
    Definition Classes
    PathDirectives
  134. def synchronized [T0] (arg0: ⇒ T0): T0

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

    Definition Classes
    AnyRef → Any
  136. lazy val trace : SprayRoute0

    A route filter that rejects all non-TRACE requests.

    A route filter that rejects all non-TRACE requests.

    Definition Classes
    SimpleDirectives
  137. def transformRequest (f: (HttpRequest) ⇒ HttpRequest): SprayRoute0

    Returns a Route which applies the given cc.spray.http.HttpRequest transformation function before passing on the RequestContext to its inner Route.

    Returns a Route which applies the given cc.spray.http.HttpRequest transformation function before passing on the RequestContext to its inner Route.

    Definition Classes
    MiscDirectives
  138. def transformRequestContext (f: (RequestContext) ⇒ RequestContext): SprayRoute0

    Creates a cc.spray.SprayRoute0 that accepts all requests but applies the given transformation function to the RequestContext.

    Creates a cc.spray.SprayRoute0 that accepts all requests but applies the given transformation function to the RequestContext.

    Definition Classes
    BasicDirectives
  139. def transformResponse (f: (HttpResponse) ⇒ HttpResponse): SprayRoute0

    Returns a Route which applies the given cc.spray.http.HttpResponse transformation function to all not-rejected responses of its inner Route.

    Returns a Route which applies the given cc.spray.http.HttpResponse transformation function to all not-rejected responses of its inner Route.

    Definition Classes
    MiscDirectives
  140. def transformRoute (f: (Route) ⇒ Route): TransformRoute

    Creates a cc.spray.TransformRoute that applies the given transformation function to its inner Route.

    Creates a cc.spray.TransformRoute that applies the given transformation function to its inner Route.

    Definition Classes
    BasicDirectives
  141. def transformRoutingResult (f: (RoutingResult) ⇒ RoutingResult): SprayRoute0

    Returns a Route which applies the given transformation function to the RoutingResult of its inner Route.

    Returns a Route which applies the given transformation function to the RoutingResult of its inner Route.

    Definition Classes
    MiscDirectives
  142. def validate (check: ⇒ Boolean, errorMsg: String): SprayRoute0

    Returns a Route which checks the given condition before passing on the RequestContext to its inner Route.

    Returns a Route which checks the given condition before passing on the RequestContext to its inner Route. If the condition failes the route is rejected with a ValidationRejection.

    Definition Classes
    MiscDirectives
  143. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Directives

Inherited from SimpleParsers

Inherited from SimpleDirectives

Inherited from SecurityDirectives

Inherited from PathDirectives

Inherited from CaseClassExtractionDirectives

Inherited from ParameterDirectives

Inherited from MiscDirectives

Inherited from MarshallingDirectives

Inherited from DefaultUnmarshallers

Inherited from DefaultMarshallers

Inherited from FileAndResourceDirectives

Inherited from DetachDirectives

Inherited from CodecDirectives

Inherited from CacheDirectives

Inherited from BasicDirectives

Inherited from AnyRef

Inherited from Any