encodeV1() — netty Function Reference
Architecture documentation for the encodeV1() function in HAProxyMessageEncoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 342e378f_7a0c_5abc_da2e_26918c348787["encodeV1()"] b42a18dd_ae6a_f2e4_51f0_5f6605567255["HAProxyMessageEncoder"] 342e378f_7a0c_5abc_da2e_26918c348787 -->|defined in| b42a18dd_ae6a_f2e4_51f0_5f6605567255 a87bc120_6d1a_d0f4_f2a7_ccb9bedf10e5["encode()"] a87bc120_6d1a_d0f4_f2a7_ccb9bedf10e5 -->|calls| 342e378f_7a0c_5abc_da2e_26918c348787 style 342e378f_7a0c_5abc_da2e_26918c348787 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyMessageEncoder.java lines 63–77
private static void encodeV1(HAProxyMessage msg, ByteBuf out) {
out.writeBytes(TEXT_PREFIX);
out.writeByte((byte) ' ');
out.writeCharSequence(msg.proxiedProtocol().name(), CharsetUtil.US_ASCII);
out.writeByte((byte) ' ');
out.writeCharSequence(msg.sourceAddress(), CharsetUtil.US_ASCII);
out.writeByte((byte) ' ');
out.writeCharSequence(msg.destinationAddress(), CharsetUtil.US_ASCII);
out.writeByte((byte) ' ');
out.writeCharSequence(String.valueOf(msg.sourcePort()), CharsetUtil.US_ASCII);
out.writeByte((byte) ' ');
out.writeCharSequence(String.valueOf(msg.destinationPort()), CharsetUtil.US_ASCII);
out.writeByte((byte) '\r');
out.writeByte((byte) '\n');
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does encodeV1() do?
encodeV1() is a function in the netty codebase, defined in codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyMessageEncoder.java.
Where is encodeV1() defined?
encodeV1() is defined in codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyMessageEncoder.java at line 63.
What calls encodeV1()?
encodeV1() is called by 1 function(s): encode.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free