mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
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:
+5
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user