Closes gh-22893
This commit is contained in:
Arjen Poutsma
2019-05-07 15:24:33 +02:00
parent 59f6044c09
commit 55b56b8c5c

View File

@@ -156,9 +156,10 @@ public interface ServerRequest {
Map<String, Object> attributes();
/**
* Get the first query parameter with the given name, if present.
* Get the first parameter with the given name, if present.
* @param name the parameter name
* @return the parameter value
* @see HttpServletRequest#getParameter(String)
*/
default Optional<String> param(String name) {
List<String> paramValues = params().get(name);
@@ -175,7 +176,8 @@ public interface ServerRequest {
}
/**
* Get all query parameters for this request.
* Get all parameters for this request.
* @see HttpServletRequest#getParameterMap()
*/
MultiValueMap<String, String> params();