Top Description Fields Constructors Methods
io.netty5.handler.codec.http

public Class HttpRequestEncoder

extends HttpObjectEncoder<HttpRequest>
Class Inheritance
Known Direct Subclasses
io.netty5.handler.codec.http.HttpClientCodec.Encoder
Imports
io.netty5.buffer.Buffer, java.nio.charset.StandardCharsets

Encodes an HttpRequest or an HttpContent into a Buffer.

Field Summary

Modifier and TypeField and Description
private static final char
private static final char
private static final short
private static final int
Inherited from io.netty5.handler.codec.http.HttpObjectEncoder:
CRLF_SHORT

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
acceptOutboundMessage(Object msg)

Overrides io.netty5.handler.codec.http.HttpObjectEncoder.acceptOutboundMessage.

Returns true if the given message should be handled.
protected void
Inherited from io.netty5.handler.codec.http.HttpObjectEncoder:
crlfBufferencodeAndCloseencodeHeadersisContentAlwaysEmptysanitizeHeadersBeforeEncodezeroCrlfCrlfBuffer

Field Detail

QUESTION_MARKback to summary
private static final char QUESTION_MARK
SLASHback to summary
private static final char SLASH
SLASH_AND_SPACE_SHORTback to summary
private static final short SLASH_AND_SPACE_SHORT
SPACE_SLASH_AND_SPACE_MEDIUMback to summary
private static final int SPACE_SLASH_AND_SPACE_MEDIUM

Constructor Detail

HttpRequestEncoderback to summary
public HttpRequestEncoder()

Method Detail

acceptOutboundMessageback to summary
public boolean acceptOutboundMessage(Object msg) throws Exception

Overrides io.netty5.handler.codec.http.HttpObjectEncoder.acceptOutboundMessage.

Doc from io.netty5.handler.codec.MessageToMessageEncoder.acceptOutboundMessage.

Returns true if the given message should be handled. If false it will be passed to the next ChannelHandler in the ChannelPipeline.

Annotations
@Override
encodeInitialLineback to summary
protected void encodeInitialLine(Buffer buf, HttpRequest request) throws Exception

Implements abstract io.netty5.handler.codec.http.HttpObjectEncoder.encodeInitialLine.

Annotations
@Override