public final class DefaultH2RequestConverter extends Object implements H2MessageConverter<HttpRequest>
Modifier and Type | Field and Description |
---|---|
static DefaultH2RequestConverter |
INSTANCE |
Constructor and Description |
---|
DefaultH2RequestConverter() |
Modifier and Type | Method and Description |
---|---|
List<Header> |
convert(HttpRequest message)
Converts given
HttpMessage to a list of HTTP/2 headers. |
HttpRequest |
convert(List<Header> headers)
Converts given list of HTTP/2 headers to a
HttpMessage . |
public static final DefaultH2RequestConverter INSTANCE
public HttpRequest convert(List<Header> headers) throws HttpException
H2MessageConverter
HttpMessage
.convert
in interface H2MessageConverter<HttpRequest>
headers
- list of HTTP/2 headersHttpException
- in case of HTTP protocol violationpublic List<Header> convert(HttpRequest message) throws HttpException
H2MessageConverter
HttpMessage
to a list of HTTP/2 headers.convert
in interface H2MessageConverter<HttpRequest>
message
- HTTP messageHttpException
- in case of HTTP protocol violationCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.