Package org.zalando.logbook
Interface HttpMessage
- All Known Subinterfaces:
ForwardingHttpMessage,ForwardingHttpRequest,ForwardingHttpResponse,HttpRequest,HttpResponse
@API(status=STABLE)
public interface HttpMessage
-
Method Summary
Modifier and Type Method Description byte[]getBody()default java.lang.StringgetBodyAsString()java.nio.charset.CharsetgetCharset()java.lang.StringgetContentType()HttpHeadersgetHeaders()OrigingetOrigin()java.lang.StringgetProtocolVersion()
-
Method Details
-
getProtocolVersion
java.lang.String getProtocolVersion() -
getOrigin
Origin getOrigin() -
getHeaders
HttpHeaders getHeaders() -
getContentType
@Nullable java.lang.String getContentType() -
getCharset
java.nio.charset.Charset getCharset() -
getBody
byte[] getBody() throws java.io.IOException- Throws:
java.io.IOException
-
getBodyAsString
default java.lang.String getBodyAsString() throws java.io.IOException- Throws:
java.io.IOException
-