Method: Typhoeus::Request::Actions#patch

Defined in:
lib/typhoeus/request/actions.rb

#patch(url, options = {}) ⇒ Typhoeus::Request

Note:

See Ethon::Easy#initialize for more options.

Make a patch request.

Examples:

Make patch request.

Typhoeus.patch("www.example.com")

Parameters:

  • url (String)

    The url to request.

  • options (options) (defaults to: {})

    The options.

Options Hash (options):

  • :params (Hash)

    Translated into url parameters.

  • :body (Hash)

    Translated into HTTP POST request body.

Returns:

Since:

  • 0.5.0



104
105
106
# File 'lib/typhoeus/request/actions.rb', line 104

def patch(url, options = {})
  Request.new(url, options.merge(:method => :patch)).run
end