Package akka.http.impl.engine.parsing
Class HttpResponseParser
java.lang.Object
akka.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 class
static final class
param: requestMethod the request's HTTP method param: oneHundredContinueTrigger if the request contains anExpect: 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
Nested classes/interfaces inherited from interface akka.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 HttpResponseParser
final void
emit
(ParserOutput.ResponseOutput output) boolean
protected HttpHeaderParser
final boolean
final scala.runtime.Nothing$
onBadProtocol
(akka.util.ByteString input) invoked if the specified protocol is unknownonPull()
final boolean
protected final HttpMessageParser.StateResult
parseEntity
(scala.collection.immutable.List<HttpHeader> headers, HttpProtocol protocol, akka.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.StateResult
parseMessage
(akka.util.ByteString input, int offset) final void
setContextForNextResponse
(HttpResponseParser.ResponseContext responseContext) protected ParserSettings
settings()
protected boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface akka.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:
completionHandling
in interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-
terminated
protected boolean terminated()- Specified by:
terminated
in interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-
settings
- Specified by:
settings
in interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-
headerParser
- Specified by:
headerParser
in interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-
isResponseParser
public final boolean isResponseParser()- Specified by:
isResponseParser
in interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-
createShallowCopy
-
setContextForNextResponse
-
onPull
-
onUpstreamFinish
public final boolean onUpstreamFinish() -
emit
- Specified by:
emit
in interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-
parseMessage
- Specified by:
parseMessage
in interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-
onBadProtocol
public final scala.runtime.Nothing$ onBadProtocol(akka.util.ByteString input) Description copied from interface:HttpMessageParser
invoked if the specified protocol is unknown- Specified by:
onBadProtocol
in interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-
handleInformationalResponses
public boolean handleInformationalResponses() -
parseEntity
protected final HttpMessageParser.StateResult parseEntity(scala.collection.immutable.List<HttpHeader> headers, HttpProtocol protocol, akka.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:
parseEntity
in interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-