Returns the in-scope Unmarshaller for the given type.
Returns the in-scope Unmarshaller for the given type.
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.
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.
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.
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.
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.
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.
Wraps its inner Route with decoding support using the given Decoder.
Wraps its inner Route with decoding support using the given Decoder.
A route filter that rejects all non-DELETE requests.
A route filter that rejects all non-DELETE requests.
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.
Wraps its inner Route with encoding support using the given Encoder.
Wraps its inner Route with encoding support using the given Encoder.
Creates a cc.spray.SprayRoute0 from the given RouteFilter function.
Creates a cc.spray.SprayRoute0 from the given RouteFilter function.
Created a cc.spray.SprayRoute1 from the given RouteFilter function.
Created a cc.spray.SprayRoute1 from the given RouteFilter function.
Creates a cc.spray.SprayRoute2 from the given RouteFilter function.
Creates a cc.spray.SprayRoute2 from the given RouteFilter function.
Creates a cc.spray.SprayRoute3 from the given RouteFilter function.
Creates a cc.spray.SprayRoute3 from the given RouteFilter function.
Creates a cc.spray.SprayRoute4 from the given RouteFilter function.
Creates a cc.spray.SprayRoute4 from the given RouteFilter function.
Creates a cc.spray.SprayRoute5 from the given RouteFilter function.
Creates a cc.spray.SprayRoute5 from the given RouteFilter function.
Creates a cc.spray.SprayRoute6 from the given RouteFilter function.
Creates a cc.spray.SprayRoute6 from the given RouteFilter function.
Creates a cc.spray.SprayRoute7 from the given RouteFilter function.
Creates a cc.spray.SprayRoute7 from the given RouteFilter function.
Creates a cc.spray.SprayRoute8 from the given RouteFilter function.
Creates a cc.spray.SprayRoute8 from the given RouteFilter function.
Creates a cc.spray.SprayRoute9 from the given RouteFilter function.
Creates a cc.spray.SprayRoute9 from the given RouteFilter function.
A route filter that rejects all non-GET requests.
A route filter that rejects all non-GET requests.
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.
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.
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.
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.
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".
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.
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).
A route filter that rejects all non-HEAD requests.
A route filter that rejects all non-HEAD requests.
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.
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.
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.
Convenience method for the creation of a BasicHttpAuthenticator instance.
Convenience method for the creation of a BasicHttpAuthenticator instance.
Returns the in-scope Marshaller for the given type.
Returns the in-scope Marshaller for the given type.
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.
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.
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.
A route filter that rejects all non-OPTIONS requests.
A route filter that rejects all non-OPTIONS requests.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
A route filter that rejects all non-POST requests.
A route filter that rejects all non-POST requests.
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.
A route filter that rejects all non-PUT requests.
A route filter that rejects all non-PUT requests.
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.
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.
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.
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.
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.
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.
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.
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.
A route filter that rejects all non-TRACE requests.
A route filter that rejects all non-TRACE requests.
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.
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.
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.
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.
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.
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.
Trait that should be mixed into the Directives instance used for testing. It disables the 'detach' directive, preventing "No response received" failures in Routes using
detach
.