cc.spray

ServiceBuilder

trait ServiceBuilder extends CachingBuilders with DetachedBuilders with FileResourceDirectoryBuilders with FilterBuilders with MiscBuilders with ParameterBuilders with PathBuilders with SimpleFilterBuilders with UnMarshallingBuilders

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

linear super types: UnMarshallingBuilders, DefaultUnmarshallers, DefaultMarshallers, SimpleFilterBuilders, PathBuilders, ParameterBuilders, MiscBuilders, FilterBuilders, FileResourceDirectoryBuilders, DetachedBuilders, CachingBuilders, AnyRef, Any
known subclasses: DontDetach
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. ServiceBuilder
  2. UnMarshallingBuilders
  3. DefaultUnmarshallers
  4. DefaultMarshallers
  5. SimpleFilterBuilders
  6. PathBuilders
  7. ParameterBuilders
  8. MiscBuilders
  9. FilterBuilders
  10. FileResourceDirectoryBuilders
  11. DetachedBuilders
  12. CachingBuilders
  13. AnyRef
  14. Any
Visibility
  1. Public
  2. All
Impl.
  1. Concrete
  2. Abstract

Type Members

  1. class HttpContentExtractor extends AnyRef

Value Members

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

    attributes: final
    definition classes: AnyRef
  2. def != (arg0: Any) : Boolean

    o != arg0 is the same as !(o == (arg0)).

    o != arg0 is the same as !(o == (arg0)).

    arg0

    the object to compare against this object for dis-equality.

    returns

    false if the receiver object is equivalent to the argument; true otherwise.

    attributes: final
    definition classes: Any
  3. def ## () : Int

    attributes: final
    definition classes: AnyRef → Any
  4. def $asInstanceOf [T0] () : T0

    attributes: final
    definition classes: AnyRef
  5. def $isInstanceOf [T0] () : Boolean

    attributes: final
    definition classes: AnyRef
  6. def == (arg0: AnyRef) : Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: AnyRef
  7. def == (arg0: Any) : Boolean

    o == arg0 is the same as o.equals(arg0).

    o == arg0 is the same as o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: Any
  8. object NodeSeqMarshaller extends MarshallerBase[NodeSeq]

    attributes: implicit
  9. object NodeSeqUnmarshaller extends UnmarshallerBase[NodeSeq]

    attributes: implicit
  10. object StringMarshaller extends MarshallerBase[String]

    attributes: implicit
  11. object StringUnmarshaller extends UnmarshallerBase[String]

    attributes: implicit
  12. def asInstanceOf [T0] : T0

    This method is used to cast the receiver object to be of type T0.

    This method is used to cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expressionList(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    the receiver object.

    attributes: final
    definition classes: Any
  13. def cached (route: Route)(implicit keyer: (RequestContext) ⇒ CacheKey) : Route

    Returns a Route that caches responses returned by its inner Route using the given keyer function.

    Returns a Route that caches responses returned by its inner Route using the given keyer function. The default keyer caches GET requests with the request URI as caching key, to all other requests it is fully transparent. The cache itself is implemented as a collection.mutable.WeakHashMap .

    definition classes: CachingBuilders
  14. def clone () : AnyRef

    This method creates and returns a copy of the receiver object.

    This method creates and returns a copy of the receiver object.

    The default implementation of the clone method is platform dependent.

    returns

    a copy of the receiver object.

    attributes: protected
    definition classes: AnyRef
  15. def contentAs [A] (routing: (A) ⇒ Route)(implicit arg0: Unmarshaller[A]) : Route

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

    Returns a Route that unmarshalls the requests content using the in-scope unmarshaller for the given type 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 Rejectionproduced by the unmarshaller.

    definition classes: UnMarshallingBuilders
  16. implicit def defaultCacheKeyer (ctx: RequestContext) : CacheKey

    attributes: implicit
    definition classes: CachingBuilders
  17. implicit def defaultContentTypeResolver (file: File, charset: Option[Charset]) : ContentType

    attributes: implicit
    definition classes: FileResourceDirectoryBuilders
  18. implicit def defaultDetachedActorFactory (route: Route) : Actor

    attributes: implicit
    definition classes: DetachedBuilders
  19. def delete : FilterRoute0

    Returns a Route filter that rejects all non-DELETE requests.

    Returns a Route filter that rejects all non-DELETE requests.

    definition classes: SimpleFilterBuilders
  20. def detached (route: Route)(implicit detachedActorFactory: (Route) ⇒ Actor) : Route

    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. You can supply your own implicit detachedActorFactory function to take control of the actual spawning.

    definition classes: DetachedBuilders
  21. def eq (arg0: AnyRef) : Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    The eq method implements an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation] on non-null instances of AnyRef: * It is reflexive: for any non-null instance x of type AnyRef, x.eq(x) returns true. * It is symmetric: for any non-null instances x and y of type AnyRef, x.eq(y) returns true if and only if y.eq(x) returns true. * It is transitive: for any non-null instances x, y, and z of type AnyRef if x.eq(y) returns true and y.eq(z) returns true, then x.eq(z) returns true.

    Additionally, the eq method has three other properties. * It is consistent: for any non-null instances x and y of type AnyRef, multiple invocations of x.eq(y) consistently returns true or consistently returns false. * For any non-null instance x of type AnyRef, x.eq(null) and null.eq(x) returns false. * null.eq(null) returns true.

    When overriding the equals or hashCode methods, it is important to ensure that their behavior is consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).

    arg0

    the object to compare against this object for reference equality.

    returns

    true if the argument is a reference to the receiver object; false otherwise.

    attributes: final
    definition classes: AnyRef
  22. def equals (arg0: Any) : Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation]: * It is reflexive: for any instance x of type Any, x.equals(x) should return true. * It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true. * It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same scala.Int (o1.hashCode.equals(o2.hashCode)).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    definition classes: AnyRef → Any
  23. def filter (filter: RouteFilter[Product0]) : FilterRoute0

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

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

    definition classes: FilterBuilders
  24. def filter1 [A] (filter: RouteFilter[(A)]) : FilterRoute1[A]

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

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

    definition classes: FilterBuilders
  25. def filter2 [A, B] (filter: RouteFilter[(A, B)]) : FilterRoute2[A, B]

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

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

    definition classes: FilterBuilders
  26. def filter3 [A, B, C] (filter: RouteFilter[(A, B, C)]) : FilterRoute3[A, B, C]

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

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

    definition classes: FilterBuilders
  27. def filter4 [A, B, C, D] (filter: RouteFilter[(A, B, C, D)]) : FilterRoute4[A, B, C, D]

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

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

    definition classes: FilterBuilders
  28. def filter5 [A, B, C, D, E] (filter: RouteFilter[(A, B, C, D, E)]) : FilterRoute5[A, B, C, D, E]

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

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

    definition classes: FilterBuilders
  29. def finalize () : Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    The details of when and if the finalize method are invoked, as well as the interaction between finalizeand non-local returns and exceptions, are all platform dependent.

    attributes: protected
    definition classes: AnyRef
  30. implicit def fromString (name: String) : Param

    attributes: implicit
    definition classes: ParameterBuilders
  31. implicit def fromSymbol (name: Symbol) : Param

    attributes: implicit
    definition classes: ParameterBuilders
  32. def get : FilterRoute0

    Returns a Route filter that rejects all non-GET requests.

    Returns a Route filter that rejects all non-GET requests.

    definition classes: SimpleFilterBuilders
  33. def getClass () : java.lang.Class[_]

    Returns a representation that corresponds to the dynamic class of the receiver object.

    Returns a representation that corresponds to the dynamic class of the receiver object.

    The nature of the representation is platform dependent.

    returns

    a representation that corresponds to the dynamic class of the receiver object.

    attributes: final
    definition classes: AnyRef
  34. def getFromDirectory (directoryName: String, charset: Option[Charset] =None, pathRewriter: (String) ⇒ String = ...)(implicit detachedActorFactory: (Route) ⇒ Actor, resolver: ContentTypeResolver) : 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: FileResourceDirectoryBuilders
  35. def getFromFile (fileName: String, charset: Option[Charset] =None)(implicit detachedActorFactory: (Route) ⇒ Actor, resolver: ContentTypeResolver) : 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: FileResourceDirectoryBuilders
  36. def getFromResource (resourceName: String, charset: Option[Charset] =None)(implicit detachedActorFactory: (Route) ⇒ Actor, resolver: ContentTypeResolver) : 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: FileResourceDirectoryBuilders
  37. def getFromResourceDirectory (directoryName: String, charset: Option[Charset] =None, pathRewriter: (String) ⇒ String = ...)(implicit detachedActorFactory: (Route) ⇒ Actor, resolver: ContentTypeResolver) : 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: FileResourceDirectoryBuilders
  38. def handledBy [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 produces with the in-scope unmarshaller and the result value of the function is marshalled with the in-scope marshaller.

    definition classes: UnMarshallingBuilders
  39. 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 'cached' directive).

    definition classes: MiscBuilders
  40. def hashCode () : Int

    Returns a hash code value for the object.

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    returns

    the hash code value for the object.

    definition classes: AnyRef → Any
  41. def head : FilterRoute0

    Returns a Route filter that rejects all non-HEAD requests.

    Returns a Route filter that rejects all non-HEAD requests.

    definition classes: SimpleFilterBuilders
  42. def host (regex: Regex) : FilterRoute1[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: SimpleFilterBuilders
  43. def host (predicate: (String) ⇒ Boolean) : FilterRoute0

    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: SimpleFilterBuilders
  44. def host (hostName: String) : FilterRoute0

    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: SimpleFilterBuilders
  45. def isInstanceOf [T0] : Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

    This method is used to test whether the dynamic type of the receiver object is T0.

    Note that the test result of the test is modulo Scala's erasure semantics. Therefore the expression1.isInstanceOf[String] will return false, while the expression List(1).isInstanceOf[List[String]] will return true. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    true if the receiver object is an instance of erasure of type T0; false otherwise.

    attributes: final
    definition classes: Any
  46. def method (m: HttpMethod) : FilterRoute0

    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: SimpleFilterBuilders
  47. def ne (arg0: AnyRef) : Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

    o.ne(arg0) is the same as !(o.eq(arg0)).

    arg0

    the object to compare against this object for reference dis-equality.

    returns

    false if the argument is not a reference to the receiver object; true otherwise.

    attributes: final
    definition classes: AnyRef
  48. def notify () : Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Wakes up a single thread that is waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  49. def notifyAll () : Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

    Wakes up all threads that are waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  50. def optionalContentAs [A] (routing: (Option[A]) ⇒ Route)(implicit arg0: Unmarshaller[A]) : Route

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

    Returns a Route that unmarshalls the optional request content using the in-scope unmarshaller for the given type 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 Rejectionproduced by the unmarshaller.

    definition classes: UnMarshallingBuilders
  51. def options : FilterRoute0

    Returns a Route filter that rejects all non-OPTIONS requests.

    Returns a Route filter that rejects all non-OPTIONS requests.

    definition classes: SimpleFilterBuilders
  52. def parameter (p: RequiredParameter) : FilterRoute0

    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: ParameterBuilders
  53. def parameter (a: Param) : FilterRoute1[String]

    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: ParameterBuilders
  54. def parameters (a: Param, b: Param, c: Param, d: Param, e: Param) : FilterRoute5[String, String, String, String, String]

    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: ParameterBuilders
  55. def parameters (a: Param, b: Param, c: Param, d: Param) : FilterRoute4[String, String, String, String]

    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: ParameterBuilders
  56. def parameters (a: Param, b: Param, c: Param) : FilterRoute3[String, String, String]

    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: ParameterBuilders
  57. def parameters (a: Param, b: Param) : FilterRoute2[String, String]

    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: ParameterBuilders
  58. def path (pattern: PathMatcher5) : FilterRoute5[String, String, String, String, String]

    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: PathBuilders
  59. def path (pattern: PathMatcher4) : FilterRoute4[String, String, String, String]

    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: PathBuilders
  60. def path (pattern: PathMatcher3) : FilterRoute3[String, String, String]

    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: PathBuilders
  61. def path (pattern: PathMatcher2) : FilterRoute2[String, String]

    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: PathBuilders
  62. def path (pattern: PathMatcher1) : FilterRoute1[String]

    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: PathBuilders
  63. def path (pattern: PathMatcher0) : FilterRoute0

    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: PathBuilders
  64. def pathPrefix (pattern: PathMatcher5) : FilterRoute5[String, String, String, String, String]

    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: PathBuilders
  65. def pathPrefix (pattern: PathMatcher4) : FilterRoute4[String, String, String, String]

    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: PathBuilders
  66. def pathPrefix (pattern: PathMatcher3) : FilterRoute3[String, String, String]

    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: PathBuilders
  67. def pathPrefix (pattern: PathMatcher2) : FilterRoute2[String, String]

    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: PathBuilders
  68. def pathPrefix (pattern: PathMatcher1) : FilterRoute1[String]

    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: PathBuilders
  69. def pathPrefix (pattern: PathMatcher0) : FilterRoute0

    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: PathBuilders
  70. implicit def pimpHttpContentWithAs1 (c: HttpContent) : HttpContentExtractor

    attributes: implicit
    definition classes: DefaultUnmarshallers
  71. implicit def pimpHttpContentWithAs2 (c: Option[HttpContent]) : HttpContentExtractor

    attributes: implicit
    definition classes: DefaultUnmarshallers
  72. implicit def pimpRouteWithConcatenation (route: Route) : AnyRef {...}

    attributes: implicit
    definition classes: MiscBuilders
  73. def post : FilterRoute0

    Returns a Route filter that rejects all non-POST requests.

    Returns a Route filter that rejects all non-POST requests.

    definition classes: SimpleFilterBuilders
  74. def produces [A] (routing: ((A) ⇒ Unit) ⇒ Route)(implicit marshaller: Marshaller[A]) : Route

    Returns a Route that uses the in-scope marshaller for the given type to produce a completion function that is passed to the inner route building function.

    Returns a Route that uses the in-scope marshaller for the given type 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: UnMarshallingBuilders
  75. def put : FilterRoute0

    Returns a Route filter that rejects all non-PUT requests.

    Returns a Route filter that rejects all non-PUT requests.

    definition classes: SimpleFilterBuilders
  76. implicit def regex2Matcher (regex: Regex) : PathMatcher1

    attributes: implicit
    definition classes: PathBuilders
  77. def requestTransformedBy (f: (HttpRequest) ⇒ HttpRequest)(route: Route) : Route

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

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

    definition classes: MiscBuilders
  78. def respondsWithHeader (responseHeader: HttpHeader) : (Route) ⇒ Route

    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: MiscBuilders
  79. def respondsWithStatus (responseStatus: HttpStatusCode) : (Route) ⇒ Route

    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: MiscBuilders
  80. def responseTransformedBy (f: (HttpResponse) ⇒ HttpResponse)(route: Route) : Route

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

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

    definition classes: MiscBuilders
  81. def routingResultTransformedBy (f: (RoutingResult) ⇒ RoutingResult)(route: Route) : Route

    definition classes: MiscBuilders
  82. implicit def string2Matcher (s: String) : PathMatcher0

    attributes: implicit
    definition classes: PathBuilders
  83. def synchronized [T0] (arg0: T0) : T0

    attributes: final
    definition classes: AnyRef
  84. def toString () : String

    Returns a string representation of the object.

    Returns a string representation of the object.

    The default representation is platform dependent.

    returns

    a string representation of the object.

    definition classes: AnyRef → Any
  85. def trace : FilterRoute0

    Returns a Route filter that rejects all non-TRACE requests.

    Returns a Route filter that rejects all non-TRACE requests.

    definition classes: SimpleFilterBuilders
  86. def wait () : Unit

    attributes: final
    definition classes: AnyRef
  87. def wait (arg0: Long, arg1: Int) : Unit

    attributes: final
    definition classes: AnyRef
  88. def wait (arg0: Long) : Unit

    attributes: final
    definition classes: AnyRef

Inherited from UnMarshallingBuilders

Inherited from DefaultUnmarshallers

Inherited from DefaultMarshallers

Inherited from SimpleFilterBuilders

Inherited from PathBuilders

Inherited from ParameterBuilders

Inherited from MiscBuilders

Inherited from FilterBuilders

Inherited from FileResourceDirectoryBuilders

Inherited from DetachedBuilders

Inherited from CachingBuilders

Inherited from AnyRef

Inherited from Any