Package akka.http.impl.engine.ws
Class Handshake.Client$
- java.lang.Object
-
- akka.http.impl.engine.ws.Handshake.Client$
-
- Enclosing class:
- Handshake
public static class Handshake.Client$ extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classHandshake.Client$.NegotiatedWebSocketSettingsclassHandshake.Client$.NegotiatedWebSocketSettings$
-
Field Summary
Fields Modifier and Type Field Description static Handshake.Client$MODULE$Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description Client$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description scala.Tuple2<HttpRequest,Sec$minusWebSocket$minusKey>buildRequest(Uri uri, scala.collection.immutable.Seq<HttpHeader> extraHeaders, scala.collection.immutable.Seq<java.lang.String> subprotocols, java.util.Random random)Builds a WebSocket handshake request.scala.util.Either<java.lang.String,akka.http.impl.engine.ws.Handshake.Client.NegotiatedWebSocketSettings>validateResponse(HttpResponse response, scala.collection.immutable.Seq<java.lang.String> subprotocols, Sec$minusWebSocket$minusKey key)Tries to validate the HTTP response.
-
-
-
Field Detail
-
MODULE$
public static final Handshake.Client$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
buildRequest
public scala.Tuple2<HttpRequest,Sec$minusWebSocket$minusKey> buildRequest(Uri uri, scala.collection.immutable.Seq<HttpHeader> extraHeaders, scala.collection.immutable.Seq<java.lang.String> subprotocols, java.util.Random random)
Builds a WebSocket handshake request.- Parameters:
uri- (undocumented)extraHeaders- (undocumented)subprotocols- (undocumented)random- (undocumented)- Returns:
- (undocumented)
-
validateResponse
public scala.util.Either<java.lang.String,akka.http.impl.engine.ws.Handshake.Client.NegotiatedWebSocketSettings> validateResponse(HttpResponse response, scala.collection.immutable.Seq<java.lang.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)
-
-