Package akka.http.impl.engine.client
Class OutgoingConnectionBlueprint.PrepareResponse
- java.lang.Object
-
- akka.stream.stage.GraphStageWithMaterializedValue<S,akka.NotUsed>
-
- akka.stream.stage.GraphStage<akka.stream.FlowShape<ParserOutput.ResponseOutput,HttpResponse>>
-
- akka.http.impl.engine.client.OutgoingConnectionBlueprint.PrepareResponse
-
- All Implemented Interfaces:
akka.stream.Graph<akka.stream.FlowShape<ParserOutput.ResponseOutput,HttpResponse>,akka.NotUsed>
- Enclosing class:
- OutgoingConnectionBlueprint
public static final class OutgoingConnectionBlueprint.PrepareResponse extends akka.stream.stage.GraphStage<akka.stream.FlowShape<ParserOutput.ResponseOutput,HttpResponse>>
This is essentially a three state state machine, it is either 'idle' - waiting for a response to come in or has seen the start of a response and is waiting for either chunks followed by MessageEnd if chunked or just MessageEnd in the case of a strict response.For chunked responses a new substream into the response entity is opened and data is streamed there instead of downstream until end of chunks has been reached.
-
-
Constructor Summary
Constructors Constructor Description PrepareResponse(ParserSettings parserSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description akka.stream.stage.GraphStageLogic
createLogic(akka.stream.Attributes effectiveAttributes)
akka.stream.FlowShape<ParserOutput.ResponseOutput,HttpResponse>
shape()
-
-
-
Constructor Detail
-
PrepareResponse
public PrepareResponse(ParserSettings parserSettings)
-
-
Method Detail
-
createLogic
public akka.stream.stage.GraphStageLogic createLogic(akka.stream.Attributes effectiveAttributes)
- Specified by:
createLogic
in classakka.stream.stage.GraphStage<akka.stream.FlowShape<ParserOutput.ResponseOutput,HttpResponse>>
-
shape
public akka.stream.FlowShape<ParserOutput.ResponseOutput,HttpResponse> shape()
-
-