Method: Ethon::Easy::Http::Get#setup

Defined in:
lib/ethon/easy/http/get.rb

#setup(easy) ⇒ Object

Setup easy to make a GET request.

Examples:

Setup.

get.set_params(easy)

Parameters:

  • easy (Easy)

    The easy to setup.



16
17
18
19
# File 'lib/ethon/easy/http/get.rb', line 16

def setup(easy)
  super
  easy.customrequest = "GET" unless form.empty?
end