Package org.microproxy.http
Interface FullHttpResponse
- All Superinterfaces:
FullHttpMessage,HttpContent,HttpMessage,HttpObject,HttpResponse,LastHttpContent
- All Known Implementing Classes:
DefaultFullHttpResponse,HttpCache.Answer,ServerReplay.Replayed
public sealed interface FullHttpResponse
extends HttpResponse, FullHttpMessage
permits DefaultFullHttpResponse
A complete HTTP response.
-
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, protocolVersionMethods inherited from interface org.microproxy.http.HttpResponse
setProtocolVersion, setStatus, statusMethods 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 interfaceFullHttpMessage- Specified by:
setContentin interfaceHttpContent- Specified by:
setContentin interfaceLastHttpContent- Parameters:
content- new backing array, retained without copying- Returns:
- this content object
-