public class HttpResponseParser extends java.lang.Object implements HttpMessageParser<ParserOutput.ResponseOutput>
Modifier and Type | Class and Description |
---|---|
static class |
HttpResponseParser.OneHundredContinueError$ |
static class |
HttpResponseParser.ResponseContext
param: requestMethod the request's HTTP method
param: oneHundredContinueTrigger if the request contains an
Expect: 100-continue header this option contains
a promise whose completion either triggers the sending of the (suspended)
request entity or the closing of the connection (for error completion) |
static class |
HttpResponseParser.ResponseContext$ |
HttpMessageParser.StateResult, HttpMessageParser.Trampoline, HttpMessageParser.Trampoline$
Constructor and Description |
---|
HttpResponseParser(ParserSettings settings,
HttpHeaderParser headerParser) |
Modifier and Type | Method and Description |
---|---|
protected scala.Function0<scala.Option<ParserOutput.ErrorOutput>> |
completionHandling() |
HttpResponseParser |
createShallowCopy() |
void |
emit(ParserOutput.ResponseOutput output) |
boolean |
handleInformationalResponses() |
protected HttpHeaderParser |
headerParser() |
boolean |
isResponseParser() |
scala.runtime.Nothing$ |
onBadProtocol(org.apache.pekko.util.ByteString input)
invoked if the specified protocol is unknown
|
ParserOutput.ResponseOutput |
onPull() |
boolean |
onUpstreamFinish() |
protected HttpMessageParser.StateResult |
parseEntity(scala.collection.immutable.List<HttpHeader> headers,
HttpProtocol protocol,
org.apache.pekko.util.ByteString input,
int bodyStart,
scala.Option<Content$minusLength> clh,
scala.Option<Content$minusType> cth,
boolean isChunked,
boolean expect100continue,
boolean hostHeaderPresent,
boolean closeAfterResponseCompletion,
javax.net.ssl.SSLSession sslSession) |
protected HttpMessageParser.StateResult |
parseMessage(org.apache.pekko.util.ByteString input,
int offset) |
void |
setContextForNextResponse(HttpResponseParser.ResponseContext responseContext) |
protected ParserSettings |
settings() |
protected boolean |
terminated() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
chunkedEntity, contentType, defaultEntity, done, doPull, emptyEntity, failEntityStream, failEntityStream, failEntityStream, failMessageStart, failMessageStart, failMessageStart, failMessageStart, failMessageStart, initialHeaderBuffer, parseBytes, parseChunk, parseFixedLengthBody, parseHeaderLines, parseHeaderLinesAux, parseProtocol, parseSessionBytes, setCompletionHandling, shouldComplete, startNewMessage, strictEntity, terminate
public HttpResponseParser(ParserSettings settings, HttpHeaderParser headerParser)
protected scala.Function0<scala.Option<ParserOutput.ErrorOutput>> completionHandling()
completionHandling
in interface HttpMessageParser<ParserOutput.ResponseOutput>
protected boolean terminated()
terminated
in interface HttpMessageParser<ParserOutput.ResponseOutput>
protected ParserSettings settings()
settings
in interface HttpMessageParser<ParserOutput.ResponseOutput>
protected HttpHeaderParser headerParser()
headerParser
in interface HttpMessageParser<ParserOutput.ResponseOutput>
public final boolean isResponseParser()
isResponseParser
in interface HttpMessageParser<ParserOutput.ResponseOutput>
public final HttpResponseParser createShallowCopy()
public final void setContextForNextResponse(HttpResponseParser.ResponseContext responseContext)
public final ParserOutput.ResponseOutput onPull()
public final boolean onUpstreamFinish()
public final void emit(ParserOutput.ResponseOutput output)
emit
in interface HttpMessageParser<ParserOutput.ResponseOutput>
protected HttpMessageParser.StateResult parseMessage(org.apache.pekko.util.ByteString input, int offset)
parseMessage
in interface HttpMessageParser<ParserOutput.ResponseOutput>
public final scala.runtime.Nothing$ onBadProtocol(org.apache.pekko.util.ByteString input)
HttpMessageParser
onBadProtocol
in interface HttpMessageParser<ParserOutput.ResponseOutput>
public boolean handleInformationalResponses()
protected final HttpMessageParser.StateResult parseEntity(scala.collection.immutable.List<HttpHeader> headers, HttpProtocol protocol, org.apache.pekko.util.ByteString input, int bodyStart, scala.Option<Content$minusLength> clh, scala.Option<Content$minusType> cth, boolean isChunked, boolean expect100continue, boolean hostHeaderPresent, boolean closeAfterResponseCompletion, javax.net.ssl.SSLSession sslSession)
parseEntity
in interface HttpMessageParser<ParserOutput.ResponseOutput>