Package kong.unirest.core
Class RequestSummary
java.lang.Object
kong.unirest.core.RequestSummary
- All Implemented Interfaces:
HttpRequestSummary
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
FORMATTER
-
request
-
-
Constructor Details
-
RequestSummary
RequestSummary(BaseRequest request)
-
-
Method Details
-
getHttpMethod
- Specified by:
getHttpMethod
in interfaceHttpRequestSummary
- Returns:
- The HTTP method of the request
-
getUrl
- Specified by:
getUrl
in interfaceHttpRequestSummary
- Returns:
- The current full URL string for the request with query params (http://somewhere/else?colour=red)
-
getRawPath
- Specified by:
getRawPath
in interfaceHttpRequestSummary
- Returns:
- The raw un-parameterized path without query strings (http://somewhere/{param})
-
asString
- Specified by:
asString
in interfaceHttpRequestSummary
- Returns:
- a string summary of the request suitable for logging
-
getHeaders
- Specified by:
getHeaders
in interfaceHttpRequestSummary
- Returns:
- an immutable collection of the headers for the request
-