Interface OutgoingConnectionBuilder
http(), https(), http2() or http2WithPriorKnowledge().
 Not for user extension
- 
Method SummaryModifier and TypeMethodDescriptionorg.apache.pekko.stream.javadsl.Flow<HttpRequest,HttpResponse, CompletionStage<OutgoingConnection>> http()Create a flow that when materialized creates a single HTTP/1.1 plaintext connection with a default port 80 to the server.org.apache.pekko.stream.javadsl.Flow<HttpRequest,HttpResponse, CompletionStage<OutgoingConnection>> http2()Create a flow that when materialized creates a single HTTP/2 TLS connection with a default port 443org.apache.pekko.stream.javadsl.Flow<HttpRequest,HttpResponse, CompletionStage<OutgoingConnection>> Create a flow that when materialized creates a single HTTP/2 with 'prior knowledge' plaintext connection with a default port 80org.apache.pekko.stream.javadsl.Flow<HttpRequest,HttpResponse, CompletionStage<OutgoingConnection>> https()Create a flow that when materialized creates a single HTTP/1.1 TLS connection with a default port 443logTo(org.apache.pekko.event.LoggingAdapter logger) Use a custom loggerorg.apache.pekko.stream.javadsl.Flow<HttpRequest,HttpResponse, org.apache.pekko.NotUsed> Create a flow that when materialized creates a managed HTTP/2 TLS connection with a default port 443.org.apache.pekko.stream.javadsl.Flow<HttpRequest,HttpResponse, org.apache.pekko.NotUsed> Create a flow that when materialized creates a single HTTP/2 with 'prior knowledge' plaintext connection with a default port 80Change which host flows built with this builder connects totoPort(int port) Change with port flows built with this builder connects to, if not set the protocol default is used.Use customClientConnectionSettingsfor the connection.withCustomHttpsConnectionContext(HttpsConnectionContext httpsConnectionContext) Use a customHttpsConnectionContextfor the connection.
- 
Method Details- 
httporg.apache.pekko.stream.javadsl.Flow<HttpRequest,HttpResponse, http()CompletionStage<OutgoingConnection>> Create a flow that when materialized creates a single HTTP/1.1 plaintext connection with a default port 80 to the server.- Returns:
- (undocumented)
 
- 
http2org.apache.pekko.stream.javadsl.Flow<HttpRequest,HttpResponse, http2()CompletionStage<OutgoingConnection>> Create a flow that when materialized creates a single HTTP/2 TLS connection with a default port 443Note that the responses are not guaranteed to arrive in the same order as the requests go out (In the case of a HTTP/2 connection) so therefore requests needs to have a pekko.http.scaladsl.model.RequestResponseAssociationwhich Pekko HTTP will carry over to the corresponding response for a request.- Returns:
- (undocumented)
 
- 
http2WithPriorKnowledgeorg.apache.pekko.stream.javadsl.Flow<HttpRequest,HttpResponse, http2WithPriorKnowledge()CompletionStage<OutgoingConnection>> Create a flow that when materialized creates a single HTTP/2 with 'prior knowledge' plaintext connection with a default port 80Note that the responses are not guaranteed to arrive in the same order as the requests go out (In the case of a HTTP/2 connection) so therefore requests needs to have a pekko.http.scaladsl.model.RequestResponseAssociationwhich Pekko HTTP will carry over to the corresponding response for a request.- Returns:
- (undocumented)
 
- 
httpsorg.apache.pekko.stream.javadsl.Flow<HttpRequest,HttpResponse, https()CompletionStage<OutgoingConnection>> Create a flow that when materialized creates a single HTTP/1.1 TLS connection with a default port 443- Returns:
- (undocumented)
 
- 
logToUse a custom logger- Parameters:
- logger- (undocumented)
- Returns:
- (undocumented)
 
- 
managedPersistentHttp2org.apache.pekko.stream.javadsl.Flow<HttpRequest,HttpResponse, managedPersistentHttp2()org.apache.pekko.NotUsed> Create a flow that when materialized creates a managed HTTP/2 TLS connection with a default port 443.The connection will be re-established as needed. Note that the responses are not guaranteed to arrive in the same order as the requests go out so therefore requests needs to have a pekko.http.scaladsl.model.RequestResponseAssociationwhich Pekko HTTP will carry over to the corresponding response for a request.- Returns:
- (undocumented)
 
- 
managedPersistentHttp2WithPriorKnowledgeorg.apache.pekko.stream.javadsl.Flow<HttpRequest,HttpResponse, managedPersistentHttp2WithPriorKnowledge()org.apache.pekko.NotUsed> Create a flow that when materialized creates a single HTTP/2 with 'prior knowledge' plaintext connection with a default port 80The connection will be re-established as needed. Note that the responses are not guaranteed to arrive in the same order as the requests go out (In the case of a HTTP/2 connection) so therefore requests needs to have a pekko.http.scaladsl.model.RequestResponseAssociationwhich Pekko HTTP will carry over to the corresponding response for a request.- Returns:
- (undocumented)
 
- 
toHostChange which host flows built with this builder connects to- Parameters:
- host- (undocumented)
- Returns:
- (undocumented)
 
- 
toPortChange with port flows built with this builder connects to, if not set the protocol default is used.- Parameters:
- port- (undocumented)
- Returns:
- (undocumented)
 
- 
withClientConnectionSettingsUse customClientConnectionSettingsfor the connection.- Parameters:
- settings- (undocumented)
- Returns:
- (undocumented)
 
- 
withCustomHttpsConnectionContextOutgoingConnectionBuilder withCustomHttpsConnectionContext(HttpsConnectionContext httpsConnectionContext) Use a customHttpsConnectionContextfor the connection. Only applicable forhttps()andhttp2(), overridesdefaultHttpsContext- Parameters:
- httpsConnectionContext- (undocumented)
- Returns:
- (undocumented)
 
 
-