public static HttpHeaders toArmeria(HttpResponse in) {
        final io.netty.handler.codec.http.HttpHeaders inHeaders = in.headers();
        final HttpHeaders out = new DefaultHttpHeaders(true, inHeaders.size());
        out.status(in.status().code());

        // Add the HTTP headers which have not been consumed above
        toArmeria(inHeaders, out);
        return out;
    }
public static HttpHeaders toArmeria ( HttpResponse in ) { final io . netty . handler . codec . http . HttpHeaders inHeaders = in . headers ( ) ; final HttpHeaders out = new DefaultHttpHeaders ( true , inHeaders . size ( ) ) ; out . status ( in . status ( ) . code ( ) ) ; toArmeria ( inHeaders , out ) ; return out ; }
Converts the headers of the given Netty HTTP/1.x response into Armeria HTTP/2 headers.