Class ServerParser
java.lang.Object
org.eclipse.jetty.http2.parser.Parser
org.eclipse.jetty.http2.parser.ServerParser
- 
Nested Class Summary
Nested Classes - 
Constructor Summary
ConstructorsConstructorDescriptionServerParser(ByteBufferPool bufferPool, int maxHeaderSize, RateControl rateControl)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidA direct upgrade is an unofficial upgrade from HTTP/1.1 to HTTP/2.0.protected ServerParser.Listenervoidinit(Parser.Listener listener) protected voidvoidparse(ByteBuffer buffer) Parses the givenbufferbytes and emit events to aParser.Listener.voidThe standard HTTP/1.1 upgrade path.Methods inherited from class Parser
getBeginNanoTime, getFrameType, getHpackDecoder, getMaxFrameSize, getMaxSettingsKeys, hasFlag, notifyConnectionFailure, parseBody, parseHeader, rateControlOnEvent, setMaxFrameSize, setMaxSettingsKeys 
- 
Constructor Details
- 
ServerParser
 
 - 
 - 
Method Details
- 
init
 - 
getListener
- Overrides:
 getListenerin classParser
 - 
directUpgrade
public void directUpgrade()A direct upgrade is an unofficial upgrade from HTTP/1.1 to HTTP/2.0.
A direct upgrade is initiated when
org.eclipse.jetty.server.HttpConnectionsees a request with these bytes:PRI * HTTP/2.0\r\n \r\n
This request is part of the HTTP/2.0 preface, indicating that a HTTP/2.0 client is attempting a h2c direct connection.
This is not a standard HTTP/1.1 Upgrade path.
 - 
standardUpgrade
public void standardUpgrade()The standard HTTP/1.1 upgrade path.
 - 
parse
Description copied from class:ParserParses the given
bufferbytes and emit events to aParser.Listener.When this method returns, the buffer may not be fully consumed, so invocations to this method should be wrapped in a loop:
while (buffer.hasRemaining()) parser.parse(buffer); - 
onPreface
protected void onPreface() 
 -