Package org.springframework.http
Interface HttpRequest
- All Superinterfaces:
- HttpMessage
- All Known Subinterfaces:
- ClientHttpRequest,- ServerHttpRequest,- ServerHttpRequest
- All Known Implementing Classes:
- AbstractClientHttpRequest,- AbstractServerHttpRequest,- HttpRequestWrapper,- MockClientHttpRequest,- MockServerHttpRequest,- RequestPartServletServerHttpRequest,- ServerHttpRequestDecorator,- ServletServerHttpRequest
- Since:
- 3.1
- Author:
- Arjen Poutsma
- 
Method SummaryModifier and TypeMethodDescriptionReturn the HTTP method of the request.default StringDeprecated, for removal: This API element is subject to removal in a future version.getURI()Return the URI of the request (including a query string if any, but only if it is well-formed for a URI representation).Methods inherited from interface org.springframework.http.HttpMessagegetHeaders
- 
Method Details- 
getMethodHttpMethod getMethod()Return the HTTP method of the request.- Returns:
- the HTTP method as an HttpMethod value
- See Also:
 
- 
getMethodValueDeprecated, for removal: This API element is subject to removal in a future version.as of Spring Framework 6.0 in favor ofgetMethod()andHttpMethod.name()Return the HTTP method of the request as a String value.- Returns:
- the HTTP method as a plain String
- Since:
- 5.0
- See Also:
 
- 
getURIURI getURI()Return the URI of the request (including a query string if any, but only if it is well-formed for a URI representation).- Returns:
- the URI of the request (never null)
 
 
- 
getMethod()andHttpMethod.name()