public final class BinaryHttpConverter
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static FullBinaryHttpRequest |
convert(io.netty.handler.codec.http.FullHttpRequest request,
java.lang.String scheme,
java.lang.String authority)
Creates a
FullBinaryHttpRequest from the given FullHttpRequest, scheme and authority. |
static FullBinaryHttpResponse |
convert(io.netty.handler.codec.http.FullHttpResponse response)
Creates a
FullBinaryHttpResponse from the given FullHttpResponse. |
static BinaryHttpRequest |
convert(io.netty.handler.codec.http.HttpRequest request,
java.lang.String scheme,
java.lang.String authority)
Creates a
BinaryHttpRequest from the given HttpRequest, scheme and authority. |
static BinaryHttpResponse |
convert(io.netty.handler.codec.http.HttpResponse response)
Creates a
BinaryHttpResponse from the given HttpResponse. |
static io.netty.handler.codec.http.LastHttpContent |
convert(io.netty.handler.codec.http.LastHttpContent content)
Creates a BHTTP compatible
LastHttpContent from the given LastHttpContent. |
static void |
copyAndSanitize(io.netty.handler.codec.http.HttpHeaders in,
io.netty.handler.codec.http.HttpHeaders out)
Copy the given
HttpHeaders to another HttpHeaders instance that is compatible with
OHTTP. |
public static BinaryHttpRequest convert(io.netty.handler.codec.http.HttpRequest request, java.lang.String scheme, java.lang.String authority)
BinaryHttpRequest from the given HttpRequest, scheme and authority.
All HttpHeaders names of the HttpRequest will be changed to lowercase to be in line with
the
Binary Representation of HTTP Messages specification.request - the request.scheme - the schemeauthority - the authority.public static FullBinaryHttpRequest convert(io.netty.handler.codec.http.FullHttpRequest request, java.lang.String scheme, java.lang.String authority)
FullBinaryHttpRequest from the given FullHttpRequest, scheme and authority.
All HttpHeaders names of the FullHttpRequest will be changed to lowercase to be in line with
the
Binary Representation of HTTP Messages specification.
This method will take ownership of FullBinaryHttpRequest and so is responsible for releasing it.request - the request.scheme - the schemeauthority - the authority.public static BinaryHttpResponse convert(io.netty.handler.codec.http.HttpResponse response)
BinaryHttpResponse from the given HttpResponse.
All HttpHeaders names of the HttpResponse will be changed to lowercase to be in line with
the
Binary Representation of HTTP Messages specification.response - the response.public static FullBinaryHttpResponse convert(io.netty.handler.codec.http.FullHttpResponse response)
FullBinaryHttpResponse from the given FullHttpResponse.
All HttpHeaders names of the FullHttpResponse will be changed to lowercase to be in line with
the
Binary Representation of HTTP Messages specification.
This method will take ownership of FullBinaryHttpResponse and so is responsible for releasing it.response - the response.public static io.netty.handler.codec.http.LastHttpContent convert(io.netty.handler.codec.http.LastHttpContent content)
LastHttpContent from the given LastHttpContent.
All HttpHeaders names of the LastHttpContent will be changed to lowercase to be in line with
the
Binary Representation of HTTP Messages specification.
This method will take ownership of LastHttpContent and so is responsible for releasing it.content - the last content..public static void copyAndSanitize(io.netty.handler.codec.http.HttpHeaders in,
io.netty.handler.codec.http.HttpHeaders out)
HttpHeaders to another HttpHeaders instance that is compatible with
OHTTP.
All HttpHeaders names of the HttpHeaders will be changed to lowercase to be in line with
the
Binary Representation of HTTP Messages specification.in - the HTTP/1.x headersout - the BHTTP headers.Copyright © 2023-2024 The Netty Project. All Rights Reserved.