Package com.linecorp.armeria.common
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 atHttpHeaderNames
.
-
Method Details
-
traditional
Converts lower-cased HTTP/2 header names to the traditional HTTP/1 header names which are defined atHttpHeaderNames
. For example,"user-agent"
is converted to"User-Agent"
. Note that a header name which is not defined atHttpHeaderNames
will be sent in lower-case. -
convert
Converts the specified HTTP/2 headerName into another HTTP/1 header name.
-