vertx-lang-scala-docs_2.12 3.9.1 API < Back
 

# Packages

-  package root
  Definition Classes
    root
-  package io
  Definition Classes
    root
-  package vertx
  Definition Classes
    io
-  package scala
  Definition Classes
    vertx
-  package core
  Definition Classes
    scala
-  package http
  Definition Classes
    core
- Cookie
- GoAway
- Http2Settings
- HttpClient
- HttpClientOptions
- HttpClientRequest
- HttpClientResponse
- HttpConnection
- HttpFrame
- HttpServer
- HttpServerFileUpload
- HttpServerOptions
- HttpServerRequest
- HttpServerResponse
- RequestOptions
- ServerWebSocket
- StreamPriority
- WebSocket
- WebSocketBase
- WebSocketConnectOptions
- WebSocketFrame

c

io.vertx.scala.core.http

# HttpClient 

###
Companion object HttpClient

#### class HttpClient extends Measured

An asynchronous HTTP client.

It allows you to make requests to HTTP servers, and a single client can make requests to any server.

It also allows you to open WebSockets to servers.

The client can also pool HTTP connections.

For pooling to occur, keep-alive must be true on the HttpClientOptions (default is true). In this case connections will be pooled and re-used if there are pending HTTP requests waiting to get a connection, otherwise they will be closed.

This gives the benefits of keep alive when the client is loaded but means we don't keep connections hanging around unnecessarily when there would be no benefits anyway.

The client also supports pipe-lining of requests. Pipe-lining means another request is sent on the same connection before the response from the preceding one has returned. Pipe-lining is not appropriate for all requests.

To enable pipe-lining, it must be enabled on the HttpClientOptions (default is false).

When pipe-lining is enabled the connection will be automatically closed when all in-flight responses have returned and there are no outstanding pending requests to write.

The client is designed to be reused between requests.

Linear Supertypes
Measured, AnyRef, Any
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. HttpClient
2. Measured
3. AnyRef
4. Any

1. Hide All
2. Show All

Visibility

1. Public
2. All

### Instance Constructors

1.  new HttpClient(_asJava: AnyRef)

### Value Members

1.  final def !=(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
2.  final def ##(): Int
   Definition Classes
     AnyRef → Any
3.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
4.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
5.  def asJava: AnyRef
   Definition Classes
     HttpClient → Measured
6.  def clone(): AnyRef
   Attributes
     protected[java.lang]
   Definition Classes
     AnyRef
   Annotations
     @native() @throws( ... )
7.  def close(): Unit

   Close the client.

   Close the client. Closing will close down any pooled connections. Clients should always be closed after use.

8.  def connectionHandler(handler: Handler[HttpConnection]): HttpClient

   Set a connection handler for the client.

   Set a connection handler for the client. This handler is called when a new connection is established. * @return a reference to this, so the API can be used fluently

9.  def delete(requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

   Create an HTTP DELETE request to send to the server at the default host and port, specifying a response handler to receive the response * @param requestURI the relative URI

   Create an HTTP DELETE request to send to the server at the default host and port, specifying a response handler to receive the response * @param requestURI the relative URI

   responseHandler

     the response handler

   returns

     an HTTP client request object

10.  def delete(requestURI: String): HttpClientRequest

    Create an HTTP DELETE request to send to the server at the default host and port.

    Create an HTTP DELETE request to send to the server at the default host and port. * @param requestURI the relative URI

    returns

      an HTTP client request object

11.  def delete(host: String, requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP DELETE request to send to the server at the specified host and default port, specifying a response handler to receive the response * @param host the host

    Create an HTTP DELETE request to send to the server at the specified host and default port, specifying a response handler to receive the response * @param host the host

    requestURI

      the relative URI

    responseHandler

      the response handler

    returns

      an HTTP client request object

12.  def delete(port: Int, host: String, requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP DELETE request to send to the server at the specified host and port, specifying a response handler to receive the response * @param port the port

    Create an HTTP DELETE request to send to the server at the specified host and port, specifying a response handler to receive the response * @param port the port

    host

      the host

    requestURI

      the relative URI

    responseHandler

      the response handler

    returns

      an HTTP client request object

13.  def delete(options: RequestOptions, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP DELETE request to send to the server with the specified options, specifying a response handler to receive the response * @param options the request options see RequestOptions

    Create an HTTP DELETE request to send to the server with the specified options, specifying a response handler to receive the response * @param options the request options see RequestOptions

    responseHandler

      the response handler

    returns

      an HTTP client request object

14.  def delete(host: String, requestURI: String): HttpClientRequest

    Create an HTTP DELETE request to send to the server at the specified host and default port.

    Create an HTTP DELETE request to send to the server at the specified host and default port. * @param host the host

    requestURI

      the relative URI

    returns

      an HTTP client request object

15.  def delete(port: Int, host: String, requestURI: String): HttpClientRequest

    Create an HTTP DELETE request to send to the server at the specified host and port.

    Create an HTTP DELETE request to send to the server at the specified host and port. * @param port the port

    host

      the host

    requestURI

      the relative URI

    returns

      an HTTP client request object

16.  def delete(options: RequestOptions): HttpClientRequest

    Create an HTTP DELETE request to send to the server with the specified options.

    Create an HTTP DELETE request to send to the server with the specified options. * @param options the request options see RequestOptions

    returns

      an HTTP client request object

17.  def deleteAbs(absoluteURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP DELETE request to send to the server using an absolute URI, specifying a response handler to receive the response * @param absoluteURI the absolute URI

    Create an HTTP DELETE request to send to the server using an absolute URI, specifying a response handler to receive the response * @param absoluteURI the absolute URI

    responseHandler

      the response handler

    returns

      an HTTP client request object

18.  def deleteAbs(absoluteURI: String): HttpClientRequest

    Create an HTTP DELETE request to send to the server using an absolute URI * @param absoluteURI the absolute URI

    Create an HTTP DELETE request to send to the server using an absolute URI * @param absoluteURI the absolute URI

    returns

      an HTTP client request object

19.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
20.  def equals(arg0: Any): Boolean
    Definition Classes
      AnyRef → Any
21.  def finalize(): Unit
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
22.  def get(requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP GET request to send to the server at the default host and port, specifying a response handler to receive the response * @param requestURI the relative URI

    Create an HTTP GET request to send to the server at the default host and port, specifying a response handler to receive the response * @param requestURI the relative URI

    responseHandler

      the response handler

    returns

      an HTTP client request object

23.  def get(requestURI: String): HttpClientRequest

    Create an HTTP GET request to send to the server at the default host and port.

    Create an HTTP GET request to send to the server at the default host and port. * @param requestURI the relative URI

    returns

      an HTTP client request object

24.  def get(host: String, requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP GET request to send to the server at the specified host and default port, specifying a response handler to receive the response * @param host the host

    Create an HTTP GET request to send to the server at the specified host and default port, specifying a response handler to receive the response * @param host the host

    requestURI

      the relative URI

    responseHandler

      the response handler

    returns

      an HTTP client request object

25.  def get(port: Int, host: String, requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP GET request to send to the server at the specified host and port, specifying a response handler to receive the response * @param port the port

    Create an HTTP GET request to send to the server at the specified host and port, specifying a response handler to receive the response * @param port the port

    host

      the host

    requestURI

      the relative URI

    responseHandler

      the response handler

    returns

      an HTTP client request object

26.  def get(options: RequestOptions, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP GET request to send to the server with the specified options, specifying a response handler to receive the response * @param options the request options see RequestOptions

    Create an HTTP GET request to send to the server with the specified options, specifying a response handler to receive the response * @param options the request options see RequestOptions

    responseHandler

      the response handler

    returns

      an HTTP client request object

27.  def get(host: String, requestURI: String): HttpClientRequest

    Create an HTTP GET request to send to the server at the specified host and default port.

    Create an HTTP GET request to send to the server at the specified host and default port. * @param host the host

    requestURI

      the relative URI

    returns

      an HTTP client request object

28.  def get(port: Int, host: String, requestURI: String): HttpClientRequest

    Create an HTTP GET request to send to the server at the specified host and port.

    Create an HTTP GET request to send to the server at the specified host and port. * @param port the port

    host

      the host

    requestURI

      the relative URI

    returns

      an HTTP client request object

29.  def get(options: RequestOptions): HttpClientRequest

    Create an HTTP GET request to send to the server with the specified options.

    Create an HTTP GET request to send to the server with the specified options. * @param options the request options see RequestOptions

    returns

      an HTTP client request object

30.  def getAbs(absoluteURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP GET request to send to the server using an absolute URI, specifying a response handler to receive the response * @param absoluteURI the absolute URI

    Create an HTTP GET request to send to the server using an absolute URI, specifying a response handler to receive the response * @param absoluteURI the absolute URI

    responseHandler

      the response handler

    returns

      an HTTP client request object

31.  def getAbs(absoluteURI: String): HttpClientRequest

    Create an HTTP GET request to send to the server using an absolute URI * @param absoluteURI the absolute URI

    Create an HTTP GET request to send to the server using an absolute URI * @param absoluteURI the absolute URI

    returns

      an HTTP client request object

32.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
33.  def getNow(requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClient

    Sends an HTTP GET request to the server at the default host and port, specifying a response handler to receive the response * @param requestURI the relative URI

    Sends an HTTP GET request to the server at the default host and port, specifying a response handler to receive the response * @param requestURI the relative URI

    responseHandler

      the response handler

    returns

      a reference to this, so the API can be used fluently

34.  def getNow(host: String, requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClient

    Sends an HTTP GET request to the server at the specified host and default port, specifying a response handler to receive the response * @param host the host

    Sends an HTTP GET request to the server at the specified host and default port, specifying a response handler to receive the response * @param host the host

    requestURI

      the relative URI

    responseHandler

      the response handler

    returns

      a reference to this, so the API can be used fluently

35.  def getNow(port: Int, host: String, requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClient

    Sends an HTTP GET request to the server at the specified host and port, specifying a response handler to receive the response * @param port the port

    Sends an HTTP GET request to the server at the specified host and port, specifying a response handler to receive the response * @param port the port

    host

      the host

    requestURI

      the relative URI

    responseHandler

      the response handler

    returns

      a reference to this, so the API can be used fluently

36.  def getNow(options: RequestOptions, responseHandler: Handler[HttpClientResponse]): HttpClient

    Sends an HTTP GET request to the server with the specified options, specifying a response handler to receive the response * @param options the request options see RequestOptions

    Sends an HTTP GET request to the server with the specified options, specifying a response handler to receive the response * @param options the request options see RequestOptions

    responseHandler

      the response handler

    returns

      a reference to this, so the API can be used fluently

37.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
38.  def head(requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP HEAD request to send to the server at the default host and port, specifying a response handler to receive the response * @param requestURI the relative URI

    Create an HTTP HEAD request to send to the server at the default host and port, specifying a response handler to receive the response * @param requestURI the relative URI

    responseHandler

      the response handler

    returns

      an HTTP client request object

39.  def head(requestURI: String): HttpClientRequest

    Create an HTTP HEAD request to send to the server at the default host and port.

    Create an HTTP HEAD request to send to the server at the default host and port. * @param requestURI the relative URI

    returns

      an HTTP client request object

40.  def head(host: String, requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP HEAD request to send to the server at the specified host and default port, specifying a response handler to receive the response * @param host the host

    Create an HTTP HEAD request to send to the server at the specified host and default port, specifying a response handler to receive the response * @param host the host

    requestURI

      the relative URI

    responseHandler

      the response handler

    returns

      an HTTP client request object

41.  def head(port: Int, host: String, requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP HEAD request to send to the server at the specified host and port, specifying a response handler to receive the response * @param port the port

    Create an HTTP HEAD request to send to the server at the specified host and port, specifying a response handler to receive the response * @param port the port

    host

      the host

    requestURI

      the relative URI

    responseHandler

      the response handler

    returns

      an HTTP client request object

42.  def head(options: RequestOptions, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP HEAD request to send to the server with the specified options, specifying a response handler to receive the response * @param options the request options see RequestOptions

    Create an HTTP HEAD request to send to the server with the specified options, specifying a response handler to receive the response * @param options the request options see RequestOptions

    responseHandler

      the response handler

    returns

      an HTTP client request object

43.  def head(host: String, requestURI: String): HttpClientRequest

    Create an HTTP HEAD request to send to the server at the specified host and default port.

    Create an HTTP HEAD request to send to the server at the specified host and default port. * @param host the host

    requestURI

      the relative URI

    returns

      an HTTP client request object

44.  def head(port: Int, host: String, requestURI: String): HttpClientRequest

    Create an HTTP HEAD request to send to the server at the specified host and port.

    Create an HTTP HEAD request to send to the server at the specified host and port. * @param port the port

    host

      the host

    requestURI

      the relative URI

    returns

      an HTTP client request object

45.  def head(options: RequestOptions): HttpClientRequest

    Create an HTTP HEAD request to send to the server with the specified options.

    Create an HTTP HEAD request to send to the server with the specified options. * @param options the request options see RequestOptions

    returns

      an HTTP client request object

46.  def headAbs(absoluteURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP HEAD request to send to the server using an absolute URI, specifying a response handler to receive the response * @param absoluteURI the absolute URI

    Create an HTTP HEAD request to send to the server using an absolute URI, specifying a response handler to receive the response * @param absoluteURI the absolute URI

    responseHandler

      the response handler

    returns

      an HTTP client request object

47.  def headAbs(absoluteURI: String): HttpClientRequest

    Create an HTTP HEAD request to send to the server using an absolute URI * @param absoluteURI the absolute URI

    Create an HTTP HEAD request to send to the server using an absolute URI * @param absoluteURI the absolute URI

    returns

      an HTTP client request object

48.  def headNow(requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClient

    Sends an HTTP HEAD request to the server at the default host and port, specifying a response handler to receive the response * @param requestURI the relative URI

    Sends an HTTP HEAD request to the server at the default host and port, specifying a response handler to receive the response * @param requestURI the relative URI

    responseHandler

      the response handler

    returns

      a reference to this, so the API can be used fluently

49.  def headNow(host: String, requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClient

    Sends an HTTP HEAD request to the server at the specified host and default port, specifying a response handler to receive the response * @param host the host

    Sends an HTTP HEAD request to the server at the specified host and default port, specifying a response handler to receive the response * @param host the host

    requestURI

      the relative URI

    responseHandler

      the response handler

    returns

      a reference to this, so the API can be used fluently

50.  def headNow(port: Int, host: String, requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClient

    Sends an HTTP HEAD request to the server at the specified host and port, specifying a response handler to receive the response * @param port the port

    Sends an HTTP HEAD request to the server at the specified host and port, specifying a response handler to receive the response * @param port the port

    host

      the host

    requestURI

      the relative URI

    responseHandler

      the response handler

    returns

      a reference to this, so the API can be used fluently

51.  def headNow(options: RequestOptions, responseHandler: Handler[HttpClientResponse]): HttpClient

    Sends an HTTP HEAD request to the server with the specified options, specifying a response handler to receive the response * @param options the request options see RequestOptions

    Sends an HTTP HEAD request to the server with the specified options, specifying a response handler to receive the response * @param options the request options see RequestOptions

    responseHandler

      the response handler

    returns

      a reference to this, so the API can be used fluently

52.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
53.  def isMetricsEnabled(): Boolean

    Whether the metrics are enabled for this measured object * @return `true` if metrics are enabled

    Whether the metrics are enabled for this measured object * @return `true` if metrics are enabled

    Definition Classes
      HttpClient → Measured
54.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
55.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
56.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
57.  def options(requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP OPTIONS request to send to the server at the default host and port, specifying a response handler to receive the response * @param requestURI the relative URI

    Create an HTTP OPTIONS request to send to the server at the default host and port, specifying a response handler to receive the response * @param requestURI the relative URI

    responseHandler

      the response handler

    returns

      an HTTP client request object

58.  def options(requestURI: String): HttpClientRequest

    Create an HTTP OPTIONS request to send to the server at the default host and port.

    Create an HTTP OPTIONS request to send to the server at the default host and port. * @param requestURI the relative URI

    returns

      an HTTP client request object

59.  def options(host: String, requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP OPTIONS request to send to the server at the specified host and default port, specifying a response handler to receive the response * @param host the host

    Create an HTTP OPTIONS request to send to the server at the specified host and default port, specifying a response handler to receive the response * @param host the host

    requestURI

      the relative URI

    responseHandler

      the response handler

    returns

      an HTTP client request object

60.  def options(port: Int, host: String, requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP OPTIONS request to send to the server at the specified host and port, specifying a response handler to receive the response * @param port the port

    Create an HTTP OPTIONS request to send to the server at the specified host and port, specifying a response handler to receive the response * @param port the port

    host

      the host

    requestURI

      the relative URI

    responseHandler

      the response handler

    returns

      an HTTP client request object

61.  def options(options: RequestOptions, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP OPTIONS request to send to the server with the specified options, specifying a response handler to receive the response * @param options the request options see RequestOptions

    Create an HTTP OPTIONS request to send to the server with the specified options, specifying a response handler to receive the response * @param options the request options see RequestOptions

    responseHandler

      the response handler

    returns

      an HTTP client request object

62.  def options(host: String, requestURI: String): HttpClientRequest

    Create an HTTP OPTIONS request to send to the server at the specified host and default port.

    Create an HTTP OPTIONS request to send to the server at the specified host and default port. * @param host the host

    requestURI

      the relative URI

    returns

      an HTTP client request object

63.  def options(port: Int, host: String, requestURI: String): HttpClientRequest

    Create an HTTP OPTIONS request to send to the server at the specified host and port.

    Create an HTTP OPTIONS request to send to the server at the specified host and port. * @param port the port

    host

      the host

    requestURI

      the relative URI

    returns

      an HTTP client request object

64.  def options(options: RequestOptions): HttpClientRequest

    Create an HTTP OPTIONS request to send to the server with the specified options.

    Create an HTTP OPTIONS request to send to the server with the specified options. * @param options the request options see RequestOptions

    returns

      an HTTP client request object

65.  def optionsAbs(absoluteURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP OPTIONS request to send to the server using an absolute URI, specifying a response handler to receive the response * @param absoluteURI the absolute URI

    Create an HTTP OPTIONS request to send to the server using an absolute URI, specifying a response handler to receive the response * @param absoluteURI the absolute URI

    responseHandler

      the response handler

    returns

      an HTTP client request object

66.  def optionsAbs(absoluteURI: String): HttpClientRequest

    Create an HTTP OPTIONS request to send to the server using an absolute URI * @param absoluteURI the absolute URI

    Create an HTTP OPTIONS request to send to the server using an absolute URI * @param absoluteURI the absolute URI

    returns

      an HTTP client request object

67.  def optionsNow(requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClient

    Sends an HTTP OPTIONS request to the server at the default host and port, specifying a response handler to receive the response * @param requestURI the relative URI

    Sends an HTTP OPTIONS request to the server at the default host and port, specifying a response handler to receive the response * @param requestURI the relative URI

    responseHandler

      the response handler

    returns

      a reference to this, so the API can be used fluently

68.  def optionsNow(host: String, requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClient

    Sends an HTTP OPTIONS request to the server at the specified host and default port, specifying a response handler to receive the response * @param host the host

    Sends an HTTP OPTIONS request to the server at the specified host and default port, specifying a response handler to receive the response * @param host the host

    requestURI

      the relative URI

    responseHandler

      the response handler

    returns

      a reference to this, so the API can be used fluently

69.  def optionsNow(port: Int, host: String, requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClient

    Sends an HTTP OPTIONS request to the server at the specified host and port, specifying a response handler to receive the response * @param port the port

    Sends an HTTP OPTIONS request to the server at the specified host and port, specifying a response handler to receive the response * @param port the port

    host

      the host

    requestURI

      the relative URI

    responseHandler

      the response handler

    returns

      a reference to this, so the API can be used fluently

70.  def optionsNow(options: RequestOptions, responseHandler: Handler[HttpClientResponse]): HttpClient

    Sends an HTTP OPTIONS request to the server with the specified options, specifying a response handler to receive the response * @param options the request options see RequestOptions

    Sends an HTTP OPTIONS request to the server with the specified options, specifying a response handler to receive the response * @param options the request options see RequestOptions

    responseHandler

      the response handler

    returns

      a reference to this, so the API can be used fluently

71.  def post(requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP POST request to send to the server at the default host and port, specifying a response handler to receive the response * @param requestURI the relative URI

    Create an HTTP POST request to send to the server at the default host and port, specifying a response handler to receive the response * @param requestURI the relative URI

    responseHandler

      the response handler

    returns

      an HTTP client request object

72.  def post(requestURI: String): HttpClientRequest

    Create an HTTP POST request to send to the server at the default host and port.

    Create an HTTP POST request to send to the server at the default host and port. * @param requestURI the relative URI

    returns

      an HTTP client request object

73.  def post(host: String, requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP POST request to send to the server at the specified host and default port, specifying a response handler to receive the response * @param host the host

    Create an HTTP POST request to send to the server at the specified host and default port, specifying a response handler to receive the response * @param host the host

    requestURI

      the relative URI

    responseHandler

      the response handler

    returns

      an HTTP client request object

74.  def post(port: Int, host: String, requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP POST request to send to the server at the specified host and port, specifying a response handler to receive the response * @param port the port

    Create an HTTP POST request to send to the server at the specified host and port, specifying a response handler to receive the response * @param port the port

    host

      the host

    requestURI

      the relative URI

    responseHandler

      the response handler

    returns

      an HTTP client request object

75.  def post(options: RequestOptions, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP POST request to send to the server with the specified options, specifying a response handler to receive the response * @param options the request options see RequestOptions

    Create an HTTP POST request to send to the server with the specified options, specifying a response handler to receive the response * @param options the request options see RequestOptions

    responseHandler

      the response handler

    returns

      an HTTP client request object

76.  def post(host: String, requestURI: String): HttpClientRequest

    Create an HTTP POST request to send to the server at the specified host and default port.

    Create an HTTP POST request to send to the server at the specified host and default port. * @param host the host

    requestURI

      the relative URI

    returns

      an HTTP client request object

77.  def post(port: Int, host: String, requestURI: String): HttpClientRequest

    Create an HTTP POST request to send to the server at the specified host and port.

    Create an HTTP POST request to send to the server at the specified host and port. * @param port the port

    host

      the host

    requestURI

      the relative URI

    returns

      an HTTP client request object

78.  def post(options: RequestOptions): HttpClientRequest

    Create an HTTP POST request to send to the server with the specified options.

    Create an HTTP POST request to send to the server with the specified options. * @param options the request options see RequestOptions

    returns

      an HTTP client request object

79.  def postAbs(absoluteURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP POST request to send to the server using an absolute URI, specifying a response handler to receive the response * @param absoluteURI the absolute URI

    Create an HTTP POST request to send to the server using an absolute URI, specifying a response handler to receive the response * @param absoluteURI the absolute URI

    responseHandler

      the response handler

    returns

      an HTTP client request object

80.  def postAbs(absoluteURI: String): HttpClientRequest

    Create an HTTP POST request to send to the server using an absolute URI * @param absoluteURI the absolute URI

    Create an HTTP POST request to send to the server using an absolute URI * @param absoluteURI the absolute URI

    returns

      an HTTP client request object

81.  def put(requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP PUT request to send to the server at the default host and port, specifying a response handler to receive the response * @param requestURI the relative URI

    Create an HTTP PUT request to send to the server at the default host and port, specifying a response handler to receive the response * @param requestURI the relative URI

    responseHandler

      the response handler

    returns

      an HTTP client request object

82.  def put(requestURI: String): HttpClientRequest

    Create an HTTP PUT request to send to the server at the default host and port.

    Create an HTTP PUT request to send to the server at the default host and port. * @param requestURI the relative URI

    returns

      an HTTP client request object

83.  def put(host: String, requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP PUT request to send to the server at the specified host and default port, specifying a response handler to receive the response * @param host the host

    Create an HTTP PUT request to send to the server at the specified host and default port, specifying a response handler to receive the response * @param host the host

    requestURI

      the relative URI

    responseHandler

      the response handler

    returns

      an HTTP client request object

84.  def put(port: Int, host: String, requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP PUT request to send to the server at the specified host and port, specifying a response handler to receive the response * @param port the port

    Create an HTTP PUT request to send to the server at the specified host and port, specifying a response handler to receive the response * @param port the port

    host

      the host

    requestURI

      the relative URI

    responseHandler

      the response handler

    returns

      an HTTP client request object

85.  def put(options: RequestOptions, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP PUT request to send to the server with the specified options, specifying a response handler to receive the response * @param options the request options see RequestOptions

    Create an HTTP PUT request to send to the server with the specified options, specifying a response handler to receive the response * @param options the request options see RequestOptions

    responseHandler

      the response handler

    returns

      an HTTP client request object

86.  def put(host: String, requestURI: String): HttpClientRequest

    Create an HTTP PUT request to send to the server at the specified host and default port.

    Create an HTTP PUT request to send to the server at the specified host and default port. * @param host the host

    requestURI

      the relative URI

    returns

      an HTTP client request object

87.  def put(port: Int, host: String, requestURI: String): HttpClientRequest

    Create an HTTP PUT request to send to the server at the specified host and port.

    Create an HTTP PUT request to send to the server at the specified host and port. * @param port the port

    host

      the host

    requestURI

      the relative URI

    returns

      an HTTP client request object

88.  def put(options: RequestOptions): HttpClientRequest

    Create an HTTP PUT request to send to the server with the specified options.

    Create an HTTP PUT request to send to the server with the specified options. * @param options the request options see RequestOptions

    returns

      an HTTP client request object

89.  def putAbs(absoluteURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP PUT request to send to the server using an absolute URI, specifying a response handler to receive the response * @param absoluteURI the absolute URI

    Create an HTTP PUT request to send to the server using an absolute URI, specifying a response handler to receive the response * @param absoluteURI the absolute URI

    responseHandler

      the response handler

    returns

      an HTTP client request object

90.  def putAbs(absoluteURI: String): HttpClientRequest

    Create an HTTP PUT request to send to the server using an absolute URI * @param absoluteURI the absolute URI

    Create an HTTP PUT request to send to the server using an absolute URI * @param absoluteURI the absolute URI

    returns

      an HTTP client request object

91.  def redirectHandler(handler: (HttpClientResponse) ⇒ Future[HttpClientRequest]): HttpClient

    Set a redirect handler for the http client.

    Set a redirect handler for the http client.

    The redirect handler is called when a `3xx` response is received and the request is configured to follow redirects with io.vertx.scala.core.http.HttpClientRequest#setFollowRedirects.

    The redirect handler is passed the io.vertx.scala.core.http.HttpClientResponse, it can return an io.vertx.scala.core.http.HttpClientRequest or `null`.

    - when null is returned, the original response is processed by the original request response handler
    - when a new `Future<HttpClientRequest>` is returned, the client will send this new request

    The new request will get a copy of the previous request headers unless headers are set. In this case, the client assumes that the redirect handler exclusively managers the headers of the new request.

    The handler must return a `Future<HttpClientRequest>` unsent so the client can further configure it and send it. * @param handler the new redirect handler

    returns

      a reference to this, so the API can be used fluently

92.  def request(method: HttpMethod, requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP request to send to the server at the default host and port, specifying a response handler to receive the response * @param method the HTTP method

    Create an HTTP request to send to the server at the default host and port, specifying a response handler to receive the response * @param method the HTTP method

    requestURI

      the relative URI

    responseHandler

      the response handler

    returns

      an HTTP client request object

93.  def request(method: HttpMethod, requestURI: String): HttpClientRequest

    Create an HTTP request to send to the server at the default host and port.

    Create an HTTP request to send to the server at the default host and port. * @param method the HTTP method

    requestURI

      the relative URI

    returns

      an HTTP client request object

94.  def request(method: HttpMethod, host: String, requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP request to send to the server at the specified host and default port, specifying a response handler to receive the response * @param method the HTTP method

    Create an HTTP request to send to the server at the specified host and default port, specifying a response handler to receive the response * @param method the HTTP method

    host

      the host

    requestURI

      the relative URI

    responseHandler

      the response handler

    returns

      an HTTP client request object

95.  def request(method: HttpMethod, serverAddress: SocketAddress, port: Int, host: String, requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Like io.vertx.scala.core.http.HttpClient#request using the `serverAddress` parameter to connect to the server instead of the `absoluteURI` parameter.

    Like io.vertx.scala.core.http.HttpClient#request using the `serverAddress` parameter to connect to the server instead of the `absoluteURI` parameter.

    The request host header will still be created from the `host` and `port` parameters.

    Use to connect to a unix domain socket server.

96.  def request(method: HttpMethod, port: Int, host: String, requestURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP request to send to the server at the specified host and port, specifying a response handler to receive the response * @param method the HTTP method

    Create an HTTP request to send to the server at the specified host and port, specifying a response handler to receive the response * @param method the HTTP method

    port

      the port

    host

      the host

    requestURI

      the relative URI

    responseHandler

      the response handler

    returns

      an HTTP client request object

97.  def request(method: HttpMethod, serverAddress: SocketAddress, options: RequestOptions, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Like io.vertx.scala.core.http.HttpClient#request using the `serverAddress` parameter to connect to the server instead of the `absoluteURI` parameter.

    Like io.vertx.scala.core.http.HttpClient#request using the `serverAddress` parameter to connect to the server instead of the `absoluteURI` parameter.

    The request host header will still be created from the `options` parameter.

    Use to connect to a unix domain socket server.

98.  def request(method: HttpMethod, options: RequestOptions, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

    Create an HTTP request to send to the server with the specified options, specifying a response handler to receive * @param method the HTTP method

    Create an HTTP request to send to the server with the specified options, specifying a response handler to receive * @param method the HTTP method

    options

      the request options see RequestOptions

    returns

      an HTTP client request object

99.  def request(method: HttpMethod, host: String, requestURI: String): HttpClientRequest

    Create an HTTP request to send to the server at the specified host and default port.

    Create an HTTP request to send to the server at the specified host and default port. * @param method the HTTP method

    host

      the host

    requestURI

      the relative URI

    returns

      an HTTP client request object

100.  def request(method: HttpMethod, serverAddress: SocketAddress, port: Int, host: String, requestURI: String): HttpClientRequest

     Like io.vertx.scala.core.http.HttpClient#request using the `serverAddress` parameter to connect to the server instead of the `absoluteURI` parameter.

     Like io.vertx.scala.core.http.HttpClient#request using the `serverAddress` parameter to connect to the server instead of the `absoluteURI` parameter.

     The request host header will still be created from the `host` and `port` parameters.

     Use to connect to a unix domain socket server.

101.  def request(method: HttpMethod, port: Int, host: String, requestURI: String): HttpClientRequest

     Create an HTTP request to send to the server at the specified host and port.

     Create an HTTP request to send to the server at the specified host and port. * @param method the HTTP method

     port

       the port

     host

       the host

     requestURI

       the relative URI

     returns

       an HTTP client request object

102.  def request(method: HttpMethod, options: RequestOptions): HttpClientRequest

     Create an HTTP request to send to the server with the specified options.

     Create an HTTP request to send to the server with the specified options. * @param method the HTTP method

     options

       the request options see RequestOptions

     returns

       an HTTP client request object

103.  def request(method: HttpMethod, serverAddress: SocketAddress, options: RequestOptions): HttpClientRequest

     Like io.vertx.scala.core.http.HttpClient#request using the `serverAddress` parameter to connect to the server instead of the `absoluteURI` parameter.

     Like io.vertx.scala.core.http.HttpClient#request using the `serverAddress` parameter to connect to the server instead of the `absoluteURI` parameter.

     The request host header will still be created from the `options` parameter.

     Use to connect to a unix domain socket server.

104.  def requestAbs(method: HttpMethod, serverAddress: SocketAddress, absoluteURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

     Like io.vertx.scala.core.http.HttpClient#requestAbs using the `serverAddress` parameter to connect to the server instead of the `absoluteURI` parameter.

     Like io.vertx.scala.core.http.HttpClient#requestAbs using the `serverAddress` parameter to connect to the server instead of the `absoluteURI` parameter.

     The request host header will still be created from the `absoluteURI` parameter.

     Use to connect to a unix domain socket server.

105.  def requestAbs(method: HttpMethod, absoluteURI: String, responseHandler: Handler[HttpClientResponse]): HttpClientRequest

     Create an HTTP request to send to the server using an absolute URI, specifying a response handler to receive the response * @param method the HTTP method

     Create an HTTP request to send to the server using an absolute URI, specifying a response handler to receive the response * @param method the HTTP method

     absoluteURI

       the absolute URI

     responseHandler

       the response handler

     returns

       an HTTP client request object

106.  def requestAbs(method: HttpMethod, serverAddress: SocketAddress, absoluteURI: String): HttpClientRequest

     Like io.vertx.scala.core.http.HttpClient#requestAbs using the `serverAddress` parameter to connect to the server instead of the `absoluteURI` parameter.

     Like io.vertx.scala.core.http.HttpClient#requestAbs using the `serverAddress` parameter to connect to the server instead of the `absoluteURI` parameter.

     The request host header will still be created from the `absoluteURI` parameter.

     Use to connect to a unix domain socket server.

107.  def requestAbs(method: HttpMethod, absoluteURI: String): HttpClientRequest

     Create an HTTP request to send to the server using an absolute URI * @param method the HTTP method

     Create an HTTP request to send to the server using an absolute URI * @param method the HTTP method

     absoluteURI

       the absolute URI

     returns

       an HTTP client request object

108.  final def synchronized[T0](arg0: ⇒ T0): T0
     Definition Classes
       AnyRef
109.  def toString(): String
     Definition Classes
       AnyRef → Any
110.  final def wait(): Unit
     Definition Classes
       AnyRef
     Annotations
       @throws( ... )
111.  final def wait(arg0: Long, arg1: Int): Unit
     Definition Classes
       AnyRef
     Annotations
       @throws( ... )
112.  final def wait(arg0: Long): Unit
     Definition Classes
       AnyRef
     Annotations
       @native() @throws( ... )
113.  def webSocket(options: WebSocketConnectOptions, handler: Handler[AsyncResult[WebSocket]]): Unit

     Connect a WebSocket with the specified options.

     Connect a WebSocket with the specified options. * @param options the request options see WebSocketConnectOptions

114.  def webSocket(requestURI: String, handler: Handler[AsyncResult[WebSocket]]): Unit

     Connect a WebSocket at the relative request URI using the default host and port * @param requestURI the relative URI

     Connect a WebSocket at the relative request URI using the default host and port * @param requestURI the relative URI

     handler

       handler that will be called with the WebSocket when connected

115.  def webSocket(host: String, requestURI: String, handler: Handler[AsyncResult[WebSocket]]): Unit

     Connect a WebSocket to the host and relative request URI and default port * @param host the host

     Connect a WebSocket to the host and relative request URI and default port * @param host the host

     requestURI

       the relative URI

     handler

       handler that will be called with the WebSocket when connected

116.  def webSocket(port: Int, host: String, requestURI: String, handler: Handler[AsyncResult[WebSocket]]): Unit

     Connect a WebSocket to the specified port, host and relative request URI * @param port the port

     Connect a WebSocket to the specified port, host and relative request URI * @param port the port

     host

       the host

     requestURI

       the relative URI

     handler

       handler that will be called with the WebSocket when connected

117.  def webSocketAbs(url: String, headers: MultiMap, version: WebsocketVersion, subProtocols: Buffer[String], handler: Handler[AsyncResult[WebSocket]]): Unit

     Connect a WebSocket with the specified absolute url, with the specified headers, using the specified version of WebSockets, and the specified WebSocket sub protocols.

     Connect a WebSocket with the specified absolute url, with the specified headers, using the specified version of WebSockets, and the specified WebSocket sub protocols. * @param url the absolute url

     headers

       the headers

     version

       the WebSocket version

     subProtocols

       the subprotocols to use

     handler

       handler that will be called if WebSocket connection fails

118.  def webSocketAbsFuture(url: String, headers: MultiMap, version: WebsocketVersion, subProtocols: Buffer[String]): scala.concurrent.Future[WebSocket]

     Like webSocketAbs but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

119.  def webSocketFuture(options: WebSocketConnectOptions): scala.concurrent.Future[WebSocket]

     Like webSocket but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

120.  def webSocketFuture(requestURI: String): scala.concurrent.Future[WebSocket]

     Like webSocket but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

121.  def webSocketFuture(host: String, requestURI: String): scala.concurrent.Future[WebSocket]

     Like webSocket but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

122.  def webSocketFuture(port: Int, host: String, requestURI: String): scala.concurrent.Future[WebSocket]

     Like webSocket but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

123.  def websocket(requestURI: String, headers: MultiMap, version: WebsocketVersion, subProtocols: String, wsConnect: Handler[WebSocket], failureHandler: Handler[Throwable]): HttpClient

     Connect a WebSocket at the relative request URI using the default host and port, the specified headers, the specified version of WebSockets and the specified sub protocols * @param requestURI the relative URI

     Connect a WebSocket at the relative request URI using the default host and port, the specified headers, the specified version of WebSockets and the specified sub protocols * @param requestURI the relative URI

     headers

       the headers

     version

       the WebSocket version

     subProtocols

       the subprotocols

     wsConnect

       handler that will be called with the WebSocket when connected

     failureHandler

       handler that will be called if WebSocket connection fails

     returns

       a reference to this, so the API can be used fluently

124.  def websocket(requestURI: String, headers: MultiMap, version: WebsocketVersion, subProtocols: String, wsConnect: Handler[WebSocket]): HttpClient

     Connect a WebSocket at the relative request URI using the default host and port, the specified headers, the specified version of WebSockets and the specified sub protocols * @param requestURI the relative URI

     Connect a WebSocket at the relative request URI using the default host and port, the specified headers, the specified version of WebSockets and the specified sub protocols * @param requestURI the relative URI

     headers

       the headers

     version

       the WebSocket version

     subProtocols

       the subprotocols

     wsConnect

       handler that will be called with the WebSocket when connected

     returns

       a reference to this, so the API can be used fluently

125.  def websocket(requestURI: String, headers: MultiMap, version: WebsocketVersion, wsConnect: Handler[WebSocket], failureHandler: Handler[Throwable]): HttpClient

     Connect a WebSocket at the relative request URI using the default host and port, the specified headers and the specified version of WebSockets * @param requestURI the relative URI

     Connect a WebSocket at the relative request URI using the default host and port, the specified headers and the specified version of WebSockets * @param requestURI the relative URI

     headers

       the headers

     version

       the WebSocket version

     wsConnect

       handler that will be called with the WebSocket when connected

     failureHandler

       handler that will be called if WebSocket connection fails

     returns

       a reference to this, so the API can be used fluently

126.  def websocket(requestURI: String, headers: MultiMap, version: WebsocketVersion, wsConnect: Handler[WebSocket]): HttpClient

     Connect a WebSocket at the relative request URI using the default host and port, the specified headers and the specified version of WebSockets * @param requestURI the relative URI

     Connect a WebSocket at the relative request URI using the default host and port, the specified headers and the specified version of WebSockets * @param requestURI the relative URI

     headers

       the headers

     version

       the WebSocket version

     wsConnect

       handler that will be called with the WebSocket when connected

     returns

       a reference to this, so the API can be used fluently

127.  def websocket(requestURI: String, headers: MultiMap, wsConnect: Handler[WebSocket], failureHandler: Handler[Throwable]): HttpClient

     Connect a WebSocket at the relative request URI using the default host and port and the specified headers * @param requestURI the relative URI

     Connect a WebSocket at the relative request URI using the default host and port and the specified headers * @param requestURI the relative URI

     headers

       the headers

     wsConnect

       handler that will be called with the WebSocket when connected

     failureHandler

       handler that will be called if WebSocket connection fails

     returns

       a reference to this, so the API can be used fluently

128.  def websocket(requestURI: String, headers: MultiMap, wsConnect: Handler[WebSocket]): HttpClient

     Connect a WebSocket at the relative request URI using the default host and port and the specified headers * @param requestURI the relative URI

     Connect a WebSocket at the relative request URI using the default host and port and the specified headers * @param requestURI the relative URI

     headers

       the headers

     wsConnect

       handler that will be called with the WebSocket when connected

     returns

       a reference to this, so the API can be used fluently

129.  def websocket(requestURI: String, wsConnect: Handler[WebSocket], failureHandler: Handler[Throwable]): HttpClient

     Connect a WebSocket at the relative request URI using the default host and port * @param requestURI the relative URI

     Connect a WebSocket at the relative request URI using the default host and port * @param requestURI the relative URI

     wsConnect

       handler that will be called with the WebSocket when connected

     failureHandler

       handler that will be called if WebSocket connection fails

     returns

       a reference to this, so the API can be used fluently

130.  def websocket(requestURI: String, wsConnect: Handler[WebSocket]): HttpClient

     Connect a WebSocket at the relative request URI using the default host and port * @param requestURI the relative URI

     Connect a WebSocket at the relative request URI using the default host and port * @param requestURI the relative URI

     wsConnect

       handler that will be called with the WebSocket when connected

     returns

       a reference to this, so the API can be used fluently

131.  def websocket(host: String, requestURI: String, headers: MultiMap, version: WebsocketVersion, subProtocols: String, wsConnect: Handler[WebSocket], failureHandler: Handler[Throwable]): HttpClient

     Connect a WebSocket to the specified host, relative request URI and default port, with the specified headers, using the specified version of WebSockets, and the specified WebSocket sub protocols * @param host the host

     Connect a WebSocket to the specified host, relative request URI and default port, with the specified headers, using the specified version of WebSockets, and the specified WebSocket sub protocols * @param host the host

     requestURI

       the relative URI

     headers

       the headers

     version

       the WebSocket version

     subProtocols

       the subprotocols to use

     wsConnect

       handler that will be called with the WebSocket when connected

     failureHandler

       handler that will be called if WebSocket connection fails

     returns

       a reference to this, so the API can be used fluently

132.  def websocket(host: String, requestURI: String, headers: MultiMap, version: WebsocketVersion, subProtocols: String, wsConnect: Handler[WebSocket]): HttpClient

     Connect a WebSocket to the specified host, relative request URI and default port, with the specified headers, using the specified version of WebSockets, and the specified WebSocket sub protocols * @param host the host

     Connect a WebSocket to the specified host, relative request URI and default port, with the specified headers, using the specified version of WebSockets, and the specified WebSocket sub protocols * @param host the host

     requestURI

       the relative URI

     headers

       the headers

     version

       the WebSocket version

     subProtocols

       the subprotocols to use

     wsConnect

       handler that will be called with the WebSocket when connected

     returns

       a reference to this, so the API can be used fluently

133.  def websocket(port: Int, host: String, requestURI: String, headers: MultiMap, version: WebsocketVersion, subProtocols: String, wsConnect: Handler[WebSocket], failureHandler: Handler[Throwable]): HttpClient

     Connect a WebSocket to the specified port, host and relative request URI, with the specified headers, using the specified version of WebSockets, and the specified WebSocket sub protocols * @param port the port

     Connect a WebSocket to the specified port, host and relative request URI, with the specified headers, using the specified version of WebSockets, and the specified WebSocket sub protocols * @param port the port

     host

       the host

     requestURI

       the relative URI

     headers

       the headers

     version

       the WebSocket version

     subProtocols

       the subprotocols to use

     wsConnect

       handler that will be called with the WebSocket when connected

     failureHandler

       handler that will be called if WebSocket connection fails

     returns

       a reference to this, so the API can be used fluently

134.  def websocket(options: RequestOptions, headers: MultiMap, version: WebsocketVersion, subProtocols: String, wsConnect: Handler[WebSocket], failureHandler: Handler[Throwable]): HttpClient

     Connect a WebSocket with the specified options, with the specified headers, using the specified version of WebSockets, and the specified WebSocket sub protocols * @param options the request options see RequestOptions

     Connect a WebSocket with the specified options, with the specified headers, using the specified version of WebSockets, and the specified WebSocket sub protocols * @param options the request options see RequestOptions

     headers

       the headers

     version

       the WebSocket version

     subProtocols

       the subprotocols to use

     wsConnect

       handler that will be called with the WebSocket when connected

     failureHandler

       handler that will be called if WebSocket connection fails

     returns

       a reference to this, so the API can be used fluently

135.  def websocket(port: Int, host: String, requestURI: String, headers: MultiMap, version: WebsocketVersion, subProtocols: String, wsConnect: Handler[WebSocket]): HttpClient

     Connect a WebSocket to the specified port, host and relative request URI, with the specified headers, using the specified version of WebSockets, and the specified WebSocket sub protocols * @param port the port

     Connect a WebSocket to the specified port, host and relative request URI, with the specified headers, using the specified version of WebSockets, and the specified WebSocket sub protocols * @param port the port

     host

       the host

     requestURI

       the relative URI

     headers

       the headers

     version

       the WebSocket version

     subProtocols

       the subprotocols to use

     wsConnect

       handler that will be called with the WebSocket when connected

     returns

       a reference to this, so the API can be used fluently

136.  def websocket(options: RequestOptions, headers: MultiMap, version: WebsocketVersion, subProtocols: String, wsConnect: Handler[WebSocket]): HttpClient

     Connect a WebSocket with the specified options, with the specified headers, using the specified version of WebSockets, and the specified WebSocket sub protocols * @param options the request options see RequestOptions

     Connect a WebSocket with the specified options, with the specified headers, using the specified version of WebSockets, and the specified WebSocket sub protocols * @param options the request options see RequestOptions

     headers

       the headers

     version

       the WebSocket version

     subProtocols

       the subprotocols to use

     wsConnect

       handler that will be called with the WebSocket when connected

     returns

       a reference to this, so the API can be used fluently

137.  def websocket(host: String, requestURI: String, headers: MultiMap, version: WebsocketVersion, wsConnect: Handler[WebSocket], failureHandler: Handler[Throwable]): HttpClient

     Connect a WebSocket to the specified host, relative request URI and default port with the specified headers and using the specified version of WebSockets * @param host the host

     Connect a WebSocket to the specified host, relative request URI and default port with the specified headers and using the specified version of WebSockets * @param host the host

     requestURI

       the relative URI

     headers

       the headers

     version

       the WebSocket version

     wsConnect

       handler that will be called with the WebSocket when connected

     failureHandler

       handler that will be called if WebSocket connection fails

     returns

       a reference to this, so the API can be used fluently

138.  def websocket(host: String, requestURI: String, headers: MultiMap, version: WebsocketVersion, wsConnect: Handler[WebSocket]): HttpClient

     Connect a WebSocket to the specified host, relative request URI and default port with the specified headers and using the specified version of WebSockets * @param host the host

     Connect a WebSocket to the specified host, relative request URI and default port with the specified headers and using the specified version of WebSockets * @param host the host

     requestURI

       the relative URI

     headers

       the headers

     version

       the WebSocket version

     wsConnect

       handler that will be called with the WebSocket when connected

     returns

       a reference to this, so the API can be used fluently

139.  def websocket(port: Int, host: String, requestURI: String, headers: MultiMap, version: WebsocketVersion, wsConnect: Handler[WebSocket], failureHandler: Handler[Throwable]): HttpClient

     Connect a WebSocket to the specified port, host and relative request URI, with the specified headers and using the specified version of WebSockets * @param port the port

     Connect a WebSocket to the specified port, host and relative request URI, with the specified headers and using the specified version of WebSockets * @param port the port

     host

       the host

     requestURI

       the relative URI

     headers

       the headers

     version

       the WebSocket version

     wsConnect

       handler that will be called with the WebSocket when connected

     failureHandler

       handler that will be called if WebSocket connection fails

     returns

       a reference to this, so the API can be used fluently

140.  def websocket(options: RequestOptions, headers: MultiMap, version: WebsocketVersion, wsConnect: Handler[WebSocket], failureHandler: Handler[Throwable]): HttpClient

     Connect a WebSocket with the specified options, with the specified headers and using the specified version of WebSockets * @param options the request options see RequestOptions

     Connect a WebSocket with the specified options, with the specified headers and using the specified version of WebSockets * @param options the request options see RequestOptions

     headers

       the headers

     version

       the WebSocket version

     wsConnect

       handler that will be called with the WebSocket when connected

     failureHandler

       handler that will be called if WebSocket connection fails

     returns

       a reference to this, so the API can be used fluently

141.  def websocket(port: Int, host: String, requestURI: String, headers: MultiMap, version: WebsocketVersion, wsConnect: Handler[WebSocket]): HttpClient

     Connect a WebSocket to the specified port, host and relative request URI, with the specified headers and using the specified version of WebSockets * @param port the port

     Connect a WebSocket to the specified port, host and relative request URI, with the specified headers and using the specified version of WebSockets * @param port the port

     host

       the host

     requestURI

       the relative URI

     headers

       the headers

     version

       the WebSocket version

     wsConnect

       handler that will be called with the WebSocket when connected

     returns

       a reference to this, so the API can be used fluently

142.  def websocket(options: RequestOptions, headers: MultiMap, version: WebsocketVersion, wsConnect: Handler[WebSocket]): HttpClient

     Connect a WebSocket with the specified optionsI, with the specified headers and using the specified version of WebSockets * @param options the request options see RequestOptions

     Connect a WebSocket with the specified optionsI, with the specified headers and using the specified version of WebSockets * @param options the request options see RequestOptions

     headers

       the headers

     version

       the WebSocket version

     wsConnect

       handler that will be called with the WebSocket when connected

     returns

       a reference to this, so the API can be used fluently

143.  def websocket(host: String, requestURI: String, headers: MultiMap, wsConnect: Handler[WebSocket], failureHandler: Handler[Throwable]): HttpClient

     Connect a WebSocket to the specified host,relative request UR, and default port and with the specified headers * @param host the host

     Connect a WebSocket to the specified host,relative request UR, and default port and with the specified headers * @param host the host

     requestURI

       the relative URI

     headers

       the headers

     wsConnect

       handler that will be called with the WebSocket when connected

     failureHandler

       handler that will be called if WebSocket connection fails

     returns

       a reference to this, so the API can be used fluently

144.  def websocket(host: String, requestURI: String, headers: MultiMap, wsConnect: Handler[WebSocket]): HttpClient

     Connect a WebSocket to the specified host,relative request UR, and default port and with the specified headers * @param host the host

     Connect a WebSocket to the specified host,relative request UR, and default port and with the specified headers * @param host the host

     requestURI

       the relative URI

     headers

       the headers

     wsConnect

       handler that will be called with the WebSocket when connected

     returns

       a reference to this, so the API can be used fluently

145.  def websocket(port: Int, host: String, requestURI: String, headers: MultiMap, wsConnect: Handler[WebSocket], failureHandler: Handler[Throwable]): HttpClient

     Connect a WebSocket to the specified port, host and relative request URI, and with the specified headers * @param port the port

     Connect a WebSocket to the specified port, host and relative request URI, and with the specified headers * @param port the port

     host

       the host

     requestURI

       the relative URI

     headers

       the headers

     wsConnect

       handler that will be called with the WebSocket when connected

     failureHandler

       handler that will be called if WebSocket connection fails

     returns

       a reference to this, so the API can be used fluently

146.  def websocket(options: RequestOptions, headers: MultiMap, wsConnect: Handler[WebSocket], failureHandler: Handler[Throwable]): HttpClient

     Connect a WebSocket with the specified options, and with the specified headers * @param options the request options see RequestOptions

     Connect a WebSocket with the specified options, and with the specified headers * @param options the request options see RequestOptions

     headers

       the headers

     wsConnect

       handler that will be called with the WebSocket when connected

     failureHandler

       handler that will be called if WebSocket connection fails

     returns

       a reference to this, so the API can be used fluently

147.  def websocket(port: Int, host: String, requestURI: String, headers: MultiMap, wsConnect: Handler[WebSocket]): HttpClient

     Connect a WebSocket to the specified port, host and relative request URI, and with the specified headers * @param port the port

     Connect a WebSocket to the specified port, host and relative request URI, and with the specified headers * @param port the port

     host

       the host

     requestURI

       the relative URI

     headers

       the headers

     wsConnect

       handler that will be called with the WebSocket when connected

     returns

       a reference to this, so the API can be used fluently

148.  def websocket(options: RequestOptions, headers: MultiMap, wsConnect: Handler[WebSocket]): HttpClient

     Connect a WebSocket with the specified options, and with the specified headers * @param options the request options see RequestOptions

     Connect a WebSocket with the specified options, and with the specified headers * @param options the request options see RequestOptions

     headers

       the headers

     wsConnect

       handler that will be called with the WebSocket when connected

     returns

       a reference to this, so the API can be used fluently

149.  def websocket(host: String, requestURI: String, wsConnect: Handler[WebSocket], failureHandler: Handler[Throwable]): HttpClient

     Connect a WebSocket to the host and relative request URI and default port * @param host the host

     Connect a WebSocket to the host and relative request URI and default port * @param host the host

     requestURI

       the relative URI

     wsConnect

       handler that will be called with the WebSocket when connected

     failureHandler

       handler that will be called if WebSocket connection fails

     returns

       a reference to this, so the API can be used fluently

150.  def websocket(host: String, requestURI: String, wsConnect: Handler[WebSocket]): HttpClient

     Connect a WebSocket to the host and relative request URI and default port * @param host the host

     Connect a WebSocket to the host and relative request URI and default port * @param host the host

     requestURI

       the relative URI

     wsConnect

       handler that will be called with the WebSocket when connected

     returns

       a reference to this, so the API can be used fluently

151.  def websocket(port: Int, host: String, requestURI: String, wsConnect: Handler[WebSocket], failureHandler: Handler[Throwable]): HttpClient

     Connect a WebSocket to the specified port, host and relative request URI * @param port the port

     Connect a WebSocket to the specified port, host and relative request URI * @param port the port

     host

       the host

     requestURI

       the relative URI

     wsConnect

       handler that will be called with the WebSocket when connected

     failureHandler

       handler that will be called if WebSocket connection fails

     returns

       a reference to this, so the API can be used fluently

152.  def websocket(options: RequestOptions, wsConnect: Handler[WebSocket], failureHandler: Handler[Throwable]): HttpClient

     Connect a WebSocket with the specified options * @param options the request options see RequestOptions

     Connect a WebSocket with the specified options * @param options the request options see RequestOptions

     wsConnect

       handler that will be called with the WebSocket when connected

     failureHandler

       handler that will be called if WebSocket connection fails

     returns

       a reference to this, so the API can be used fluently

153.  def websocket(port: Int, host: String, requestURI: String, wsConnect: Handler[WebSocket]): HttpClient

     Connect a WebSocket to the specified port, host and relative request URI * @param port the port

     Connect a WebSocket to the specified port, host and relative request URI * @param port the port

     host

       the host

     requestURI

       the relative URI

     wsConnect

       handler that will be called with the WebSocket when connected

     returns

       a reference to this, so the API can be used fluently

154.  def websocket(options: RequestOptions, wsConnect: Handler[WebSocket]): HttpClient

     Connect a WebSocket with the specified options * @param options the request options see RequestOptions

     Connect a WebSocket with the specified options * @param options the request options see RequestOptions

     wsConnect

       handler that will be called with the WebSocket when connected

     returns

       a reference to this, so the API can be used fluently

155.  def websocketAbs(url: String, headers: MultiMap, version: WebsocketVersion, subProtocols: String, wsConnect: Handler[WebSocket], failureHandler: Handler[Throwable]): HttpClient

     Connect a WebSocket with the specified absolute url, with the specified headers, using the specified version of WebSockets, and the specified WebSocket sub protocols.

     Connect a WebSocket with the specified absolute url, with the specified headers, using the specified version of WebSockets, and the specified WebSocket sub protocols. * @param url the absolute url

     headers

       the headers

     version

       the WebSocket version

     subProtocols

       the subprotocols to use

     wsConnect

       handler that will be called with the WebSocket when connected

     failureHandler

       handler that will be called if WebSocket connection fails

     returns

       a reference to this, so the API can be used fluently

156.  def websocketStream(requestURI: String, headers: MultiMap, version: WebsocketVersion, subProtocols: String): ReadStream[WebSocket]

     Create a WebSocket stream at the relative request URI using the default host and port, the specified headers, the specified version of WebSockets and the specified sub protocols * @param requestURI the relative URI

     Create a WebSocket stream at the relative request URI using the default host and port, the specified headers, the specified version of WebSockets and the specified sub protocols * @param requestURI the relative URI

     headers

       the headers

     version

       the WebSocket version

     subProtocols

       the subprotocols

     returns

       a stream emitting a WebSocket event when the client connection has been upgraded to a WebSocket

157.  def websocketStream(requestURI: String, headers: MultiMap, version: WebsocketVersion): ReadStream[WebSocket]

     Create a WebSocket stream at the relative request URI using the default host and port, the specified headers and the specified version of WebSockets * @param requestURI the relative URI

     Create a WebSocket stream at the relative request URI using the default host and port, the specified headers and the specified version of WebSockets * @param requestURI the relative URI

     headers

       the headers

     version

       the WebSocket version

     returns

       a stream emitting a WebSocket event when the client connection has been upgraded to a WebSocket

158.  def websocketStream(requestURI: String, headers: MultiMap): ReadStream[WebSocket]

     Create a WebSocket stream at the relative request URI using the default host and port and the specified headers * @param requestURI the relative URI

     Create a WebSocket stream at the relative request URI using the default host and port and the specified headers * @param requestURI the relative URI

     headers

       the headers

     returns

       a stream emitting a WebSocket event when the client connection has been upgraded to a WebSocket

159.  def websocketStream(requestURI: String): ReadStream[WebSocket]

     Create a WebSocket stream at the relative request URI using the default host and port and the specified headers * @param requestURI the relative URI

     Create a WebSocket stream at the relative request URI using the default host and port and the specified headers * @param requestURI the relative URI

     returns

       a stream emitting a WebSocket event when the client connection has been upgraded to a WebSocket

160.  def websocketStream(host: String, requestURI: String, headers: MultiMap, version: WebsocketVersion, subProtocols: String): ReadStream[WebSocket]

     Create a WebSocket stream to the specified host, relative request URI and default port, with the specified headers, using the specified version of WebSockets, and the specified WebSocket sub protocols * @param host the host

     Create a WebSocket stream to the specified host, relative request URI and default port, with the specified headers, using the specified version of WebSockets, and the specified WebSocket sub protocols * @param host the host

     requestURI

       the relative URI

     headers

       the headers

     version

       the WebSocket version

     subProtocols

       the subprotocols to use

     returns

       a stream emitting a WebSocket event when the client connection has been upgraded to a WebSocket

161.  def websocketStream(port: Int, host: String, requestURI: String, headers: MultiMap, version: WebsocketVersion, subProtocols: String): ReadStream[WebSocket]

     Create a WebSocket stream to the specified port, host and relative request URI, with the specified headers, using the specified version of WebSockets, and the specified WebSocket sub protocols * @param port the port

     Create a WebSocket stream to the specified port, host and relative request URI, with the specified headers, using the specified version of WebSockets, and the specified WebSocket sub protocols * @param port the port

     host

       the host

     requestURI

       the relative URI

     headers

       the headers

     version

       the WebSocket version

     subProtocols

       the subprotocols to use

     returns

       a stream emitting a WebSocket event when the client connection has been upgraded to a WebSocket

162.  def websocketStream(options: RequestOptions, headers: MultiMap, version: WebsocketVersion, subProtocols: String): ReadStream[WebSocket]

     Create a WebSocket stream to the specified port, host and relative request URI, with the specified headers, using the specified version of WebSockets, and the specified WebSocket sub protocols * @param options the request options see RequestOptions

     Create a WebSocket stream to the specified port, host and relative request URI, with the specified headers, using the specified version of WebSockets, and the specified WebSocket sub protocols * @param options the request options see RequestOptions

     headers

       the headers

     version

       the WebSocket version

     subProtocols

       the subprotocols to use

     returns

       a stream emitting a WebSocket event when the client connection has been upgraded to a WebSocket

163.  def websocketStream(host: String, requestURI: String, headers: MultiMap, version: WebsocketVersion): ReadStream[WebSocket]

     Create a WebSocket stream with the specified options and with the specified headers and using the specified version of WebSockets * @param host the host

     Create a WebSocket stream with the specified options and with the specified headers and using the specified version of WebSockets * @param host the host

     requestURI

       the relative URI

     headers

       the headers

     version

       the WebSocket version

     returns

       a stream emitting a WebSocket event when the client connection has been upgraded to a WebSocket

164.  def websocketStream(port: Int, host: String, requestURI: String, headers: MultiMap, version: WebsocketVersion): ReadStream[WebSocket]

     Create a WebSocket stream to the specified port, host and relative request URI, with the specified headers and using the specified version of WebSockets * @param port the port

     Create a WebSocket stream to the specified port, host and relative request URI, with the specified headers and using the specified version of WebSockets * @param port the port

     host

       the host

     requestURI

       the relative URI

     headers

       the headers

     version

       the WebSocket version

     returns

       a stream emitting a WebSocket event when the client connection has been upgraded to a WebSocket

165.  def websocketStream(options: RequestOptions, headers: MultiMap, version: WebsocketVersion): ReadStream[WebSocket]

     Create a WebSocket stream with the specified options, with the specified headers and using the specified version of WebSockets * @param options the request options see RequestOptions

     Create a WebSocket stream with the specified options, with the specified headers and using the specified version of WebSockets * @param options the request options see RequestOptions

     headers

       the headers

     version

       the WebSocket version

     returns

       a stream emitting a WebSocket event when the client connection has been upgraded to a WebSocket

166.  def websocketStream(host: String, requestURI: String, headers: MultiMap): ReadStream[WebSocket]

     Create a WebSocket stream to the specified host, relative request URI and default port and with the specified headers * @param host the host

     Create a WebSocket stream to the specified host, relative request URI and default port and with the specified headers * @param host the host

     requestURI

       the relative URI

     headers

       the headers

     returns

       a stream emitting a WebSocket event when the client connection has been upgraded to a WebSocket

167.  def websocketStream(port: Int, host: String, requestURI: String, headers: MultiMap): ReadStream[WebSocket]

     Create a WebSocket stream to the specified port, host and relative request URI, and with the specified headers * @param port the port

     Create a WebSocket stream to the specified port, host and relative request URI, and with the specified headers * @param port the port

     host

       the host

     requestURI

       the relative URI

     headers

       the headers

     returns

       a stream emitting a WebSocket event when the client connection has been upgraded to a WebSocket

168.  def websocketStream(options: RequestOptions, headers: MultiMap): ReadStream[WebSocket]

     Create a WebSocket stream with the specified options, and with the specified headers * @param options the request options see RequestOptions

     Create a WebSocket stream with the specified options, and with the specified headers * @param options the request options see RequestOptions

     headers

       the headers

     returns

       a stream emitting a WebSocket event when the client connection has been upgraded to a WebSocket

169.  def websocketStream(host: String, requestURI: String): ReadStream[WebSocket]

     Create a WebSocket stream to the specified host, relative request URI and default port * @param host the host

     Create a WebSocket stream to the specified host, relative request URI and default port * @param host the host

     requestURI

       the relative URI

     returns

       a stream emitting a WebSocket event when the client connection has been upgraded to a WebSocket

170.  def websocketStream(port: Int, host: String, requestURI: String): ReadStream[WebSocket]

     Create a WebSocket stream to the specified port, host and relative request URI * @param port the port

     Create a WebSocket stream to the specified port, host and relative request URI * @param port the port

     host

       the host

     requestURI

       the relative URI

     returns

       a stream emitting a WebSocket event when the client connection has been upgraded to a WebSocket

171.  def websocketStream(options: RequestOptions): ReadStream[WebSocket]

     Create a WebSocket stream with the specified options * @param options the request options see RequestOptions

     Create a WebSocket stream with the specified options * @param options the request options see RequestOptions

     returns

       a stream emitting a WebSocket event when the client connection has been upgraded to a WebSocket

172.  def websocketStreamAbs(url: String, headers: MultiMap, version: WebsocketVersion, subProtocols: String): ReadStream[WebSocket]

     Create a WebSocket stream with the specified absolute url, the specified headers, using the specified version of WebSockets, and the specified WebSocket sub protocols.

     Create a WebSocket stream with the specified absolute url, the specified headers, using the specified version of WebSockets, and the specified WebSocket sub protocols. * @param url the absolute url

     headers

       the headers

     version

       the WebSocket version

     subProtocols

       the subprotocols to use

     returns

       a stream emitting a WebSocket event when the client connection has been upgraded to a WebSocket

### Inherited from Measured

### Inherited from AnyRef

### Inherited from Any

### Ungrouped