Adds a TransformationRejection cancelling all rejections for which the given filter function returns true to the list of rejections potentially coming back from the inner route.
Adds a TransformationRejection cancelling all rejections equal to the given one to the list of rejections potentially coming back from the inner route.
Directive extracting the IP of the client from either the X-Forwarded-For, Remote-Address or X-Real-IP header (in that order of priority).
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. The name of this function is validated to
prevent XSS vulnerabilities. Only alphanumeric, underscore (_), dollar ($) and dot (.) characters are allowed.
Additionally the content-type is changed from application/json
to application/javascript
in these cases.
Converts responses with an empty entity into (empty) rejections.
Converts responses with an empty entity into (empty) rejections. This way you can, for example, have the marshalling of a None option be treated as if the request could not be matched.
Rejects the request if its entity is not empty.
Rejects empty requests with a RequestEntityExpectedRejection.
Rejects empty requests with a RequestEntityExpectedRejection. Non-empty requests are passed on unchanged to the inner route.
Extracts the complete request.
Extracts the complete request URI.
Transforms the unmatchedPath of the RequestContext using the given function.
Extracts the unmatched path from the RequestContext.
Returns a Directive which checks the given condition before passing on the spray.routing.RequestContext to its inner Route.
Returns a Directive which checks the given condition before passing on the spray.routing.RequestContext to its inner Route. If the condition fails the route is rejected with a spray.routing.ValidationRejection.