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 Summary
Nested 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.HttpMessageParser
HttpMessageParser.StateResult, HttpMessageParser.Trampoline, HttpMessageParser.Trampoline$ -
Constructor Summary
Constructors -
Method Summary
Modifier 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pekko.http.impl.engine.parsing.HttpMessageParser
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
-
Constructor Details
-
HttpResponseParser
-
-
Method Details
-
completionHandling
- Specified by:
completionHandlingin interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-
terminated
protected boolean terminated()- Specified by:
terminatedin interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-
settings
- Specified by:
settingsin interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-
headerParser
- Specified by:
headerParserin interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-
isResponseParser
public final boolean isResponseParser()- Specified by:
isResponseParserin interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-
createShallowCopy
-
setContextForNextResponse
-
onPull
-
onUpstreamFinish
public final boolean onUpstreamFinish() -
emit
- Specified by:
emitin interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-
parseMessage
protected HttpMessageParser.StateResult parseMessage(org.apache.pekko.util.ByteString input, int offset) - Specified by:
parseMessagein interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-
onBadProtocol
public 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 interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-
handleInformationalResponses
public boolean handleInformationalResponses() -
parseEntity
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, SSLSession sslSession) - Specified by:
parseEntityin interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-