Class Handshake.Client$
java.lang.Object
org.apache.pekko.http.impl.engine.ws.Handshake.Client$
- Enclosing class:
- Handshake
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionclassclass
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Handshake.Client$Static reference to the singleton instance of this Scala object.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionscala.Tuple2<HttpRequest,Sec$minusWebSocket$minusKey> buildRequest(Uri uri, scala.collection.immutable.Seq<HttpHeader> extraHeaders, scala.collection.immutable.Seq<String> subprotocols, Random random) Builds a WebSocket handshake request.scala.util.Either<String,org.apache.pekko.http.impl.engine.ws.Handshake.Client.NegotiatedWebSocketSettings> validateResponse(HttpResponse response, scala.collection.immutable.Seq<String> subprotocols, Sec$minusWebSocket$minusKey key) Tries to validate the HTTP response.
- 
Field Details- 
MODULE$Static reference to the singleton instance of this Scala object.
 
- 
- 
Constructor Details- 
Client$public Client$()
 
- 
- 
Method Details- 
buildRequestpublic scala.Tuple2<HttpRequest,Sec$minusWebSocket$minusKey> buildRequest(Uri uri, scala.collection.immutable.Seq<HttpHeader> extraHeaders, scala.collection.immutable.Seq<String> subprotocols, Random random) Builds a WebSocket handshake request.- Parameters:
- uri- (undocumented)
- extraHeaders- (undocumented)
- subprotocols- (undocumented)
- random- (undocumented)
- Returns:
- (undocumented)
 
- 
validateResponsepublic scala.util.Either<String,org.apache.pekko.http.impl.engine.ws.Handshake.Client.NegotiatedWebSocketSettings> validateResponse(HttpResponse response, scala.collection.immutable.Seq<String> subprotocols, Sec$minusWebSocket$minusKey key) Tries to validate the HTTP response. Returns either Right(settings) or an error message if the response cannot be validated.- Parameters:
- response- (undocumented)
- subprotocols- (undocumented)
- key- (undocumented)
- Returns:
- (undocumented)
 
 
-