Package org.microproxy.http
Interface FullHttpMessage
- All Superinterfaces:
HttpContent,HttpMessage,HttpObject,LastHttpContent
- All Known Subinterfaces:
FullHttpRequest,FullHttpResponse
- All Known Implementing Classes:
DefaultFullHttpRequest,DefaultFullHttpResponse,HttpCache.Answer,ServerReplay.Replayed
public sealed interface FullHttpMessage
extends HttpMessage, LastHttpContent
permits FullHttpRequest, FullHttpResponse
A complete HTTP message: head and whole body in one object.
-
Method Summary
Modifier and TypeMethodDescriptionsetContent(byte[] content) Replaces the body bytes of this piece.Methods inherited from interface org.microproxy.http.HttpContent
content, contentAsString, contentAsString, contentLengthMethods inherited from interface org.microproxy.http.HttpMessage
headers, protocolVersion, setProtocolVersionMethods inherited from interface org.microproxy.http.LastHttpContent
trailingHeaders
-
Method Details
-
setContent
Description copied from interface:HttpContentReplaces the body bytes of this piece.- Specified by:
setContentin interfaceHttpContent- Specified by:
setContentin interfaceLastHttpContent- Parameters:
content- new backing array, retained without copying- Returns:
- this content object
-