public interface MethodDirectives
Modifier and Type | Method and Description |
---|---|
Directive<scala.runtime.BoxedUnit> |
delete()
Rejects all non-DELETE requests.
|
Directive<scala.Tuple1<HttpMethod>> |
extractMethod()
Extracts the request method.
|
Directive<scala.runtime.BoxedUnit> |
get()
Rejects all non-GET requests.
|
Directive<scala.runtime.BoxedUnit> |
head()
Rejects all non-HEAD requests.
|
Directive<scala.runtime.BoxedUnit> |
method(HttpMethod httpMethod)
Rejects all requests whose HTTP method does not match the given one.
|
Directive<scala.runtime.BoxedUnit> |
options()
Rejects all non-OPTIONS requests.
|
Directive<scala.runtime.BoxedUnit> |
overrideMethodWithParameter(java.lang.String paramName)
Changes the HTTP method of the request to the value of the specified query string parameter.
|
Directive<scala.runtime.BoxedUnit> |
patch()
Rejects all non-PATCH requests.
|
Directive<scala.runtime.BoxedUnit> |
post()
Rejects all non-POST requests.
|
Directive<scala.runtime.BoxedUnit> |
put()
Rejects all non-PUT requests.
|
Directive<scala.runtime.BoxedUnit> delete()
Directive<scala.runtime.BoxedUnit> get()
Directive<scala.runtime.BoxedUnit> head()
Directive<scala.runtime.BoxedUnit> options()
Directive<scala.runtime.BoxedUnit> patch()
Directive<scala.runtime.BoxedUnit> post()
Directive<scala.runtime.BoxedUnit> put()
Directive<scala.Tuple1<HttpMethod>> extractMethod()
Directive<scala.runtime.BoxedUnit> method(HttpMethod httpMethod)
httpMethod
- (undocumented)Directive<scala.runtime.BoxedUnit> overrideMethodWithParameter(java.lang.String paramName)
501 Not Implemented
response.
This directive is useful for: - Use in combination with JSONP (JSONP only supports GET) - Supporting older browsers that lack support for certain HTTP methods. E.g. IE8 does not support PATCH
paramName
- (undocumented)