Method: Vertx::HttpClient#delete

Defined in:
lib/vertx/http.rb

#delete(uri, &hndlr) ⇒ Object

This method returns an Vertx::HttpClientRequest instance which represents an HTTP DELETE request with the specified uri. When an HTTP response is received from the server the handler is called passing in the response.

Parameters:

  • uri. (String)

    A relative URI where to perform the DELETE on the server.

  • hndlr. (Block)

    The handler to be called with the Vertx::HttpClientResponse



223
224
225
# File 'lib/vertx/http.rb', line 223

def delete(uri, &hndlr)
  HttpClientRequest.new(@j_del.delete(uri, resp_handler(hndlr)))
end