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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface akka.stream.Graph
akka.stream.Graph.GraphMapMatVal<S extends akka.stream.Shape,
M extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionakka.stream.stage.GraphStageLogic
createLogic
(akka.stream.Attributes effectiveAttributes) akka.stream.FlowShape<ParserOutput.ResponseOutput,
HttpResponse> shape()
Methods inherited from class akka.stream.stage.GraphStage
createLogicAndMaterializedValue
Methods inherited from class akka.stream.stage.GraphStageWithMaterializedValue
addAttributes, async, async, async, createLogicAndMaterializedValue, getAttributes, initialAttributes, named, traversalBuilder, withAttributes
-
Constructor Details
-
PrepareResponse
-
-
Method Details
-
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
-