Method: Vertx::HttpClient#patch

Defined in:
lib/vertx/http.rb

#patch(uri, &hndlr) ⇒ Object

This method returns an Vertx::HttpClientRequest instance which represents an HTTP PATCH 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 PATCH on the server.

  • hndlr. (Block)

    The handler to be called with the Vertx::HttpClientResponse



247
248
249
# File 'lib/vertx/http.rb', line 247

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