@NonNull
    @Override
    public ByteBuffer toBuffer() {
        StringBuilder builder = new StringBuilder();
        builder.append(method.name());
        builder.append(" ");
        builder.append(path());
        builder.append(" ");
        builder.append(protocol().toString());
        builder.append(NetBareUtils.LINE_END);
        for (Map.Entry<String, List<String>> entry : headers().entrySet()) {
            for (String value : entry.getValue()) {
                builder.append(entry.getKey());
                builder.append(": ");
                builder.append(value);
                builder.append(NetBareUtils.LINE_END);
            }
        }
        builder.append(NetBareUtils.LINE_END);
        return ByteBuffer.wrap(builder.toString().getBytes());
    }
Build a {@link HttpRequestHeaderPart} instance.

@return The instance.
netbare-injector/src/main/java/com/github/megatronking/netbare/http/HttpRequestHeaderPart.java