Package kong.unirest.core
Interface HttpRequestSummary
-
- All Known Implementing Classes:
RequestSummary
public interface HttpRequestSummary
A summary of a request about to be performed
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
asString()
java.util.Collection<Header>
getHeaders()
HttpMethod
getHttpMethod()
java.lang.String
getRawPath()
java.lang.String
getUrl()
-
-
-
Method Detail
-
getHttpMethod
HttpMethod getHttpMethod()
- Returns:
- The HTTP method of the request
-
getUrl
java.lang.String getUrl()
- Returns:
- The current full URL string for the request with query params (http://somewhere/else?colour=red)
-
getRawPath
java.lang.String getRawPath()
- Returns:
- The raw un-parameterized path without query strings (http://somewhere/{param})
-
asString
java.lang.String asString()
- Returns:
- a string summary of the request suitable for logging
-
getHeaders
java.util.Collection<Header> getHeaders()
- Returns:
- an immutable collection of the headers for the request
-
-