servicetalk-http-netty/src/main/java/io/servicetalk/http/netty/HttpObjectEncoder.java
/**
     * Encode the {@link HttpHeaders} into a buffer represented by two references: {@link ByteBuf} and {@link Buffer}.
     * We reference the same buffer as {@link ByteBuf} and {@link Buffer} to avoid allocation of wrapping layer if
     * necessary for optimized data transfer to have an instance of {@link Buffer}.
     */
Encode the  HttpHeaders into a buffer represented by two references:  ByteBuf and  Buffer.
We reference the same buffer as  ByteBuf and  Buffer to avoid allocation of wrapping layer if
necessary for optimized data transfer to have an instance of  Buffer.
Encode the HttpHeaders into a buffer represented by two references : ByteBuf and Buffer . We reference the same buffer as ByteBuf and Buffer to avoid allocation of wrapping layer if necessary for optimized data transfer to have an instance of Buffer .
private static void encodeHeaders(HttpHeaders headers, ByteBuf byteBuf, Buffer buffer) {
        for (Map.Entry<CharSequence, CharSequence> header : headers) {
            encodeHeader(header.getKey(), header.getValue(), byteBuf, buffer);
        }
    }
private static void encodeHeaders ( HttpHeaders headers , ByteBuf byteBuf , Buffer buffer ) { for ( Map . Entry < CharSequence , CharSequence > header : headers ) { encodeHeader ( header . getKey ( ) , header . getValue ( ) , byteBuf , buffer ) ; } }
Encode the {@link HttpHeaders} into a buffer represented by two references: {@link ByteBuf} and {@link Buffer}.
Encode the { @link HttpHeaders } into a buffer represented by two references : { @link ByteBuf } and { @link Buffer } .