encodeInitialLine() — netty Function Reference
Architecture documentation for the encodeInitialLine() function in RtspEncoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e2c0a102_cc6b_14b4_9ad5_d988799a8591["encodeInitialLine()"] 0452c4f3_625c_98c4_04dd_c29af41600e9["RtspEncoder"] e2c0a102_cc6b_14b4_9ad5_d988799a8591 -->|defined in| 0452c4f3_625c_98c4_04dd_c29af41600e9 style e2c0a102_cc6b_14b4_9ad5_d988799a8591 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/rtsp/RtspEncoder.java lines 43–65
@Override
protected void encodeInitialLine(final ByteBuf buf, final HttpMessage message)
throws Exception {
if (message instanceof HttpRequest) {
HttpRequest request = (HttpRequest) message;
ByteBufUtil.copy(request.method().asciiName(), buf);
buf.writeByte(SP);
buf.writeCharSequence(request.uri(), CharsetUtil.UTF_8);
buf.writeByte(SP);
buf.writeCharSequence(request.protocolVersion().toString(), CharsetUtil.US_ASCII);
ByteBufUtil.writeShortBE(buf, CRLF_SHORT);
} else if (message instanceof HttpResponse) {
HttpResponse response = (HttpResponse) message;
buf.writeCharSequence(response.protocolVersion().toString(), CharsetUtil.US_ASCII);
buf.writeByte(SP);
ByteBufUtil.copy(response.status().codeAsText(), buf);
buf.writeByte(SP);
buf.writeCharSequence(response.status().reasonPhrase(), CharsetUtil.US_ASCII);
ByteBufUtil.writeShortBE(buf, CRLF_SHORT);
} else {
throw new UnsupportedMessageTypeException(message, HttpRequest.class, HttpResponse.class);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does encodeInitialLine() do?
encodeInitialLine() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/rtsp/RtspEncoder.java.
Where is encodeInitialLine() defined?
encodeInitialLine() is defined in codec-http/src/main/java/io/netty/handler/codec/rtsp/RtspEncoder.java at line 43.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free