Package kong.unirest.core
Interface HttpRequestSummary
-
- All Known Implementing Classes:
RequestSummary
public interface HttpRequestSummaryA summary of a request about to be performed
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringasString()java.util.Collection<Header>getHeaders()HttpMethodgetHttpMethod()java.lang.StringgetRawPath()java.lang.StringgetUrl()
-
-
-
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
-
-