Package org.eclipse.jetty.http2.hpack
Class HpackFieldPreEncoder
- java.lang.Object
-
- org.eclipse.jetty.http2.hpack.HpackFieldPreEncoder
-
- All Implemented Interfaces:
HttpFieldPreEncoder
public class HpackFieldPreEncoder extends java.lang.Object implements HttpFieldPreEncoder
-
-
Constructor Summary
Constructors Constructor Description HpackFieldPreEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getEncodedField(HttpHeader header, java.lang.String name, java.lang.String value)
HttpVersion
getHttpVersion()
The major version this encoder is for.
-
-
-
Method Detail
-
getHttpVersion
public HttpVersion getHttpVersion()
Description copied from interface:HttpFieldPreEncoder
The major version this encoder is for. Both HTTP/1.0 and HTTP/1.1 use the same field encoding, so theHttpVersion.HTTP_1_0
should be return for all HTTP/1.x encodings.- Specified by:
getHttpVersion
in interfaceHttpFieldPreEncoder
- Returns:
- The major version this encoder is for.
-
getEncodedField
public byte[] getEncodedField(HttpHeader header, java.lang.String name, java.lang.String value)
- Specified by:
getEncodedField
in interfaceHttpFieldPreEncoder
-
-