Introduce ServerRequest.methodName()

This commit introduces a methodName() method to the ServerRequest,
returning the String name of the method. This method is useful for
non-standard HTTP methods.
This commit is contained in:
Arjen Poutsma
2017-09-15 14:11:20 +02:00
parent 1bc93e3d0f
commit 2fb3eeba6f
6 changed files with 33 additions and 5 deletions

View File

@@ -109,6 +109,11 @@ public class MockServerRequest implements ServerRequest {
return this.method;
}
@Override
public String methodName() {
return this.method.name();
}
@Override
public URI uri() {
return this.uri;