Package org.zalando.logbook
Interface HttpRequest
-
- All Superinterfaces:
HttpMessage
- All Known Subinterfaces:
ForwardingHttpRequest
@API(status=STABLE) public interface HttpRequest extends HttpMessage
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
getHost()
String
getMethod()
String
getPath()
Optional<Integer>
getPort()
String
getQuery()
String
getRemote()
default String
getRequestUri()
Absolute Request URI including scheme, host, port (unless http/80 or https/443), path and query string.String
getScheme()
HttpRequest
withBody()
HttpRequest
withoutBody()
-
Methods inherited from interface org.zalando.logbook.HttpMessage
getBody, getBodyAsString, getCharset, getContentType, getHeaders, getOrigin, getProtocolVersion
-
-
-
-
Method Detail
-
getRemote
String getRemote()
-
getMethod
String getMethod()
-
getRequestUri
default String getRequestUri()
Absolute Request URI including scheme, host, port (unless http/80 or https/443), path and query string.Note that the URI may be invalid if the client issued an HTTP request using a malformed URL.
- Returns:
- the requested URI
-
getScheme
String getScheme()
-
getHost
String getHost()
-
getPath
String getPath()
-
getQuery
String getQuery()
-
withBody
HttpRequest withBody() throws IOException
- Throws:
IOException
-
withoutBody
HttpRequest withoutBody()
-
-