Package org.springframework.http
Interface HttpRequest
- All Superinterfaces:
HttpMessage
- All Known Subinterfaces:
AsyncClientHttpRequest
,ClientHttpRequest
,ServerHttpRequest
- All Known Implementing Classes:
AbstractClientHttpRequest
,HttpRequestWrapper
,MockAsyncClientHttpRequest
,MockClientHttpRequest
,RequestPartServletServerHttpRequest
,ServletServerHttpRequest
public interface HttpRequest extends HttpMessage
- Since:
- 3.1
- Author:
- Arjen Poutsma
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpMethod
getMethod()
Return the HTTP method of the request.URI
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.HttpMessage
getHeaders
Method Detail
getMethod
HttpMethod getMethod()
Return the HTTP method of the request.- Returns:
- the HTTP method as an HttpMethod enum value, or
null
if not resolvable (e.g. in case of a non-standard HTTP method)