Package kong.unirest.core
Interface HttpRequestSummary
-
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 String
asString()
Collection<Header>
getHeaders()
HttpMethod
getHttpMethod()
String
getRawPath()
String
getUrl()
-
-
-
Method Detail
-
getHttpMethod
HttpMethod getHttpMethod()
- Returns:
- The HTTP method of the request
-
getUrl
String getUrl()
- Returns:
- The current full URL string for the request with query params (http://somewhere/else?colour=red)
-
getRawPath
String getRawPath()
- Returns:
- The raw un-parameterized path without query strings (http://somewhere/{param})
-
asString
String asString()
- Returns:
- a string summary of the request suitable for logging
-
getHeaders
Collection<Header> getHeaders()
- Returns:
- an immutable collection of the headers for the request
-
-