Package kong.unirest.core
Interface HttpRequestSummary
-
public interface HttpRequestSummaryA summary of a request about to be performed
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringasString()HttpMethodgetHttpMethod()StringgetRawPath()StringgetUrl()
-
-
-
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
-
-