package io.vertx.groovy.core.http;
public class HttpClient_GroovyExtension {
  public static io.vertx.core.http.HttpClientRequest request(io.vertx.core.http.HttpClient j_receiver, io.vertx.core.http.HttpMethod method, io.vertx.core.net.SocketAddress serverAddress, java.util.Map<String, Object> options) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.request(method,
      serverAddress,
      options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null));
  }
  public static io.vertx.core.http.HttpClientRequest request(io.vertx.core.http.HttpClient j_receiver, io.vertx.core.http.HttpMethod method, java.util.Map<String, Object> options) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.request(method,
      options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null));
  }
  public static io.vertx.core.http.HttpClientRequest request(io.vertx.core.http.HttpClient j_receiver, io.vertx.core.http.HttpMethod method, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.http.HttpClientResponse> responseHandler) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.request(method,
      options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      responseHandler != null ? event -> responseHandler.handle(io.vertx.core.impl.ConversionHelper.fromObject(event)) : null));
  }
  public static io.vertx.core.http.HttpClientRequest request(io.vertx.core.http.HttpClient j_receiver, io.vertx.core.http.HttpMethod method, io.vertx.core.net.SocketAddress serverAddress, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.http.HttpClientResponse> responseHandler) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.request(method,
      serverAddress,
      options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      responseHandler != null ? event -> responseHandler.handle(io.vertx.core.impl.ConversionHelper.fromObject(event)) : null));
  }
  public static io.vertx.core.http.HttpClientRequest get(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.get(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null));
  }
  public static io.vertx.core.http.HttpClientRequest get(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.http.HttpClientResponse> responseHandler) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.get(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      responseHandler != null ? event -> responseHandler.handle(io.vertx.core.impl.ConversionHelper.fromObject(event)) : null));
  }
  public static io.vertx.core.http.HttpClient getNow(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.http.HttpClientResponse> responseHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.getNow(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      responseHandler != null ? event -> responseHandler.handle(io.vertx.core.impl.ConversionHelper.fromObject(event)) : null));
    return j_receiver;
  }
  public static io.vertx.core.http.HttpClientRequest post(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.post(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null));
  }
  public static io.vertx.core.http.HttpClientRequest post(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.http.HttpClientResponse> responseHandler) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.post(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      responseHandler != null ? event -> responseHandler.handle(io.vertx.core.impl.ConversionHelper.fromObject(event)) : null));
  }
  public static io.vertx.core.http.HttpClientRequest head(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.head(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null));
  }
  public static io.vertx.core.http.HttpClientRequest head(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.http.HttpClientResponse> responseHandler) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.head(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      responseHandler != null ? event -> responseHandler.handle(io.vertx.core.impl.ConversionHelper.fromObject(event)) : null));
  }
  public static io.vertx.core.http.HttpClient headNow(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.http.HttpClientResponse> responseHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.headNow(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      responseHandler != null ? event -> responseHandler.handle(io.vertx.core.impl.ConversionHelper.fromObject(event)) : null));
    return j_receiver;
  }
  public static io.vertx.core.http.HttpClientRequest options(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.options(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null));
  }
  public static io.vertx.core.http.HttpClientRequest options(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.http.HttpClientResponse> responseHandler) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.options(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      responseHandler != null ? event -> responseHandler.handle(io.vertx.core.impl.ConversionHelper.fromObject(event)) : null));
  }
  public static io.vertx.core.http.HttpClient optionsNow(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.http.HttpClientResponse> responseHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.optionsNow(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      responseHandler != null ? event -> responseHandler.handle(io.vertx.core.impl.ConversionHelper.fromObject(event)) : null));
    return j_receiver;
  }
  public static io.vertx.core.http.HttpClientRequest put(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.put(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null));
  }
  public static io.vertx.core.http.HttpClientRequest put(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.http.HttpClientResponse> responseHandler) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.put(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      responseHandler != null ? event -> responseHandler.handle(io.vertx.core.impl.ConversionHelper.fromObject(event)) : null));
  }
  public static io.vertx.core.http.HttpClientRequest delete(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.delete(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null));
  }
  public static io.vertx.core.http.HttpClientRequest delete(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.http.HttpClientResponse> responseHandler) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.delete(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      responseHandler != null ? event -> responseHandler.handle(io.vertx.core.impl.ConversionHelper.fromObject(event)) : null));
  }
  public static io.vertx.core.http.HttpClient websocket(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.http.WebSocket> wsConnect) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.websocket(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      wsConnect != null ? event -> wsConnect.handle(io.vertx.core.impl.ConversionHelper.fromObject(event)) : null));
    return j_receiver;
  }
  public static io.vertx.core.http.HttpClient websocket(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.http.WebSocket> wsConnect, io.vertx.core.Handler<java.lang.Throwable> failureHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.websocket(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      wsConnect != null ? event -> wsConnect.handle(io.vertx.core.impl.ConversionHelper.fromObject(event)) : null,
      failureHandler != null ? event -> failureHandler.handle(io.vertx.core.impl.ConversionHelper.fromObject(event)) : null));
    return j_receiver;
  }
  public static io.vertx.core.http.HttpClient websocket(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options, io.vertx.core.MultiMap headers, io.vertx.core.Handler<io.vertx.core.http.WebSocket> wsConnect) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.websocket(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      headers,
      wsConnect != null ? event -> wsConnect.handle(io.vertx.core.impl.ConversionHelper.fromObject(event)) : null));
    return j_receiver;
  }
  public static io.vertx.core.http.HttpClient websocket(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options, io.vertx.core.MultiMap headers, io.vertx.core.Handler<io.vertx.core.http.WebSocket> wsConnect, io.vertx.core.Handler<java.lang.Throwable> failureHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.websocket(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      headers,
      wsConnect != null ? event -> wsConnect.handle(io.vertx.core.impl.ConversionHelper.fromObject(event)) : null,
      failureHandler != null ? event -> failureHandler.handle(io.vertx.core.impl.ConversionHelper.fromObject(event)) : null));
    return j_receiver;
  }
  public static io.vertx.core.http.HttpClient websocket(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options, io.vertx.core.MultiMap headers, io.vertx.core.http.WebsocketVersion version, io.vertx.core.Handler<io.vertx.core.http.WebSocket> wsConnect) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.websocket(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      headers,
      version,
      wsConnect != null ? event -> wsConnect.handle(io.vertx.core.impl.ConversionHelper.fromObject(event)) : null));
    return j_receiver;
  }
  public static io.vertx.core.http.HttpClient websocket(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options, io.vertx.core.MultiMap headers, io.vertx.core.http.WebsocketVersion version, io.vertx.core.Handler<io.vertx.core.http.WebSocket> wsConnect, io.vertx.core.Handler<java.lang.Throwable> failureHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.websocket(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      headers,
      version,
      wsConnect != null ? event -> wsConnect.handle(io.vertx.core.impl.ConversionHelper.fromObject(event)) : null,
      failureHandler != null ? event -> failureHandler.handle(io.vertx.core.impl.ConversionHelper.fromObject(event)) : null));
    return j_receiver;
  }
  public static io.vertx.core.http.HttpClient websocket(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options, io.vertx.core.MultiMap headers, io.vertx.core.http.WebsocketVersion version, java.lang.String subProtocols, io.vertx.core.Handler<io.vertx.core.http.WebSocket> wsConnect) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.websocket(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      headers,
      version,
      subProtocols,
      wsConnect != null ? event -> wsConnect.handle(io.vertx.core.impl.ConversionHelper.fromObject(event)) : null));
    return j_receiver;
  }
  public static io.vertx.core.http.HttpClient websocket(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options, io.vertx.core.MultiMap headers, io.vertx.core.http.WebsocketVersion version, java.lang.String subProtocols, io.vertx.core.Handler<io.vertx.core.http.WebSocket> wsConnect, io.vertx.core.Handler<java.lang.Throwable> failureHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.websocket(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      headers,
      version,
      subProtocols,
      wsConnect != null ? event -> wsConnect.handle(io.vertx.core.impl.ConversionHelper.fromObject(event)) : null,
      failureHandler != null ? event -> failureHandler.handle(io.vertx.core.impl.ConversionHelper.fromObject(event)) : null));
    return j_receiver;
  }
  public static void webSocket(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.WebSocket>> handler) {
    j_receiver.webSocket(options != null ? new io.vertx.core.http.WebSocketConnectOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.WebSocket>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.core.http.WebSocket> ar) {
        handler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
      }
    } : null);
  }
  public static io.vertx.core.streams.ReadStream<io.vertx.core.http.WebSocket> websocketStream(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.websocketStream(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null));
  }
  public static io.vertx.core.streams.ReadStream<io.vertx.core.http.WebSocket> websocketStream(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options, io.vertx.core.MultiMap headers) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.websocketStream(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      headers));
  }
  public static io.vertx.core.streams.ReadStream<io.vertx.core.http.WebSocket> websocketStream(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options, io.vertx.core.MultiMap headers, io.vertx.core.http.WebsocketVersion version) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.websocketStream(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      headers,
      version));
  }
  public static io.vertx.core.streams.ReadStream<io.vertx.core.http.WebSocket> websocketStream(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options, io.vertx.core.MultiMap headers, io.vertx.core.http.WebsocketVersion version, java.lang.String subProtocols) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.websocketStream(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      headers,
      version,
      subProtocols));
  }
}