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