Change variable name of Http2Headers (#10743)
Motivation: `addHttp2ToHttpHeaders(int streamId, Http2Headers sourceHeaders, FullHttpMessage destinationMessage, boolean addToTrailer)` should match `addHttp2ToHttpHeaders(int streamId, Http2Headers inputHeaders, HttpHeaders outputHeaders, HttpVersion httpVersion, boolean isTrailer, boolean isRequest)`. However, the `Http2Headers` variable name is different. Modification: Changed `sourceHeaders` to `inputHeaders`. Result: Variable and JavaDoc naming now correct.
This commit is contained in:
parent
71f0e23bcb
commit
180f0b6ced
@ -331,15 +331,15 @@ public final class HttpConversionUtil {
|
|||||||
* Translate and add HTTP/2 headers to HTTP/1.x headers.
|
* Translate and add HTTP/2 headers to HTTP/1.x headers.
|
||||||
*
|
*
|
||||||
* @param streamId The stream associated with {@code sourceHeaders}.
|
* @param streamId The stream associated with {@code sourceHeaders}.
|
||||||
* @param sourceHeaders The HTTP/2 headers to convert.
|
* @param inputHeaders The HTTP/2 headers to convert.
|
||||||
* @param destinationMessage The object which will contain the resulting HTTP/1.x headers.
|
* @param destinationMessage The object which will contain the resulting HTTP/1.x headers.
|
||||||
* @param addToTrailer {@code true} to add to trailing headers. {@code false} to add to initial headers.
|
* @param addToTrailer {@code true} to add to trailing headers. {@code false} to add to initial headers.
|
||||||
* @throws Http2Exception If not all HTTP/2 headers can be translated to HTTP/1.x.
|
* @throws Http2Exception If not all HTTP/2 headers can be translated to HTTP/1.x.
|
||||||
* @see #addHttp2ToHttpHeaders(int, Http2Headers, HttpHeaders, HttpVersion, boolean, boolean)
|
* @see #addHttp2ToHttpHeaders(int, Http2Headers, HttpHeaders, HttpVersion, boolean, boolean)
|
||||||
*/
|
*/
|
||||||
public static void addHttp2ToHttpHeaders(int streamId, Http2Headers sourceHeaders,
|
public static void addHttp2ToHttpHeaders(int streamId, Http2Headers inputHeaders,
|
||||||
FullHttpMessage destinationMessage, boolean addToTrailer) throws Http2Exception {
|
FullHttpMessage destinationMessage, boolean addToTrailer) throws Http2Exception {
|
||||||
addHttp2ToHttpHeaders(streamId, sourceHeaders,
|
addHttp2ToHttpHeaders(streamId, inputHeaders,
|
||||||
addToTrailer ? destinationMessage.trailingHeaders() : destinationMessage.headers(),
|
addToTrailer ? destinationMessage.trailingHeaders() : destinationMessage.headers(),
|
||||||
destinationMessage.protocolVersion(), addToTrailer, destinationMessage instanceof HttpRequest);
|
destinationMessage.protocolVersion(), addToTrailer, destinationMessage instanceof HttpRequest);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user