Class HttpResponseParser
java.lang.Object
org.apache.pekko.http.impl.engine.parsing.HttpResponseParser
- All Implemented Interfaces:
- HttpMessageParser<ParserOutput.ResponseOutput>
public class HttpResponseParser
extends Object
implements HttpMessageParser<ParserOutput.ResponseOutput>
INTERNAL API
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic final classparam: requestMethod the request's HTTP method param: oneHundredContinueTrigger if the request contains anExpect: 100-continueheader 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 classNested classes/interfaces inherited from interface org.apache.pekko.http.impl.engine.parsing.HttpMessageParserHttpMessageParser.StateResult, HttpMessageParser.Trampoline, HttpMessageParser.Trampoline$
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected scala.Function0<scala.Option<ParserOutput.ErrorOutput>>final HttpResponseParserfinal voidemit(ParserOutput.ResponseOutput output) booleanprotected HttpHeaderParserfinal booleanfinal scala.runtime.Nothing$onBadProtocol(org.apache.pekko.util.ByteString input) invoked if the specified protocol is unknownonPull()final booleanprotected final HttpMessageParser.StateResultparseEntity(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, SSLSession sslSession) protected HttpMessageParser.StateResultparseMessage(org.apache.pekko.util.ByteString input, int offset) final voidsetContextForNextResponse(HttpResponseParser.ResponseContext responseContext) protected ParserSettingssettings()protected booleanMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pekko.http.impl.engine.parsing.HttpMessageParserchunkedEntity, 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
- 
Constructor Details- 
HttpResponseParser
 
- 
- 
Method Details- 
completionHandling- Specified by:
- completionHandlingin interface- HttpMessageParser<ParserOutput.ResponseOutput>
 
- 
terminatedprotected boolean terminated()- Specified by:
- terminatedin interface- HttpMessageParser<ParserOutput.ResponseOutput>
 
- 
settings- Specified by:
- settingsin interface- HttpMessageParser<ParserOutput.ResponseOutput>
 
- 
headerParser- Specified by:
- headerParserin interface- HttpMessageParser<ParserOutput.ResponseOutput>
 
- 
isResponseParserpublic final boolean isResponseParser()- Specified by:
- isResponseParserin interface- HttpMessageParser<ParserOutput.ResponseOutput>
 
- 
createShallowCopy
- 
setContextForNextResponse
- 
onPull
- 
onUpstreamFinishpublic final boolean onUpstreamFinish()
- 
emit- Specified by:
- emitin interface- HttpMessageParser<ParserOutput.ResponseOutput>
 
- 
parseMessageprotected HttpMessageParser.StateResult parseMessage(org.apache.pekko.util.ByteString input, int offset) - Specified by:
- parseMessagein interface- HttpMessageParser<ParserOutput.ResponseOutput>
 
- 
onBadProtocolpublic final scala.runtime.Nothing$ onBadProtocol(org.apache.pekko.util.ByteString input) Description copied from interface:HttpMessageParserinvoked if the specified protocol is unknown- Specified by:
- onBadProtocolin interface- HttpMessageParser<ParserOutput.ResponseOutput>
 
- 
handleInformationalResponsespublic boolean handleInformationalResponses()
- 
parseEntityprotected 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, SSLSession sslSession) - Specified by:
- parseEntityin interface- HttpMessageParser<ParserOutput.ResponseOutput>
 
 
-