Interface Http1HeaderNaming

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface Http1HeaderNaming
Converts a normalized HTTP/2 header name to another HTTP/1 header name.
  • Method Summary

    Modifier and Type Method Description
    String convert​(AsciiString http2HeaderName)
    Converts the specified HTTP/2 headerName into another HTTP/1 header name.
    static Http1HeaderNaming traditional()
    Converts lower-cased HTTP/2 header names to the traditional HTTP/1 header names which are defined at HttpHeaderNames.
  • Method Details

    • traditional

      static Http1HeaderNaming traditional()
      Converts lower-cased HTTP/2 header names to the traditional HTTP/1 header names which are defined at HttpHeaderNames. For example, "user-agent" is converted to "User-Agent". Note that a header name which is not defined at HttpHeaderNames will be sent in lower-case.
    • convert

      String convert​(AsciiString http2HeaderName)
      Converts the specified HTTP/2 headerName into another HTTP/1 header name.