Class HttpConversionUtil.Http2ToHttpHeaderTranslator

  • Enclosing class:
    HttpConversionUtil

    private static final class HttpConversionUtil.Http2ToHttpHeaderTranslator
    extends java.lang.Object
    Utility which translates HTTP/2 headers to HTTP/1 headers.
    • Constructor Detail

      • Http2ToHttpHeaderTranslator

        Http2ToHttpHeaderTranslator​(int streamId,
                                    HttpHeaders output,
                                    boolean request)
        Create a new instance
        Parameters:
        output - The HTTP/1.x headers object to store the results of the translation
        request - if true, translates headers using the request translation map. Otherwise uses the response translation map.
    • Method Detail

      • translateHeaders

        void translateHeaders​(java.lang.Iterable<java.util.Map.Entry<java.lang.CharSequence,​java.lang.CharSequence>> inputHeaders)
                       throws Http2Exception
        Throws:
        Http2Exception