Class: Ethon::Easy::Http::Put

Inherits:
Object
  • Object
show all
Includes:
Actionable, Putable
Defined in:
lib/ethon/easy/http/put.rb

Overview

This class knows everything about making PUT requests.

Constant Summary

Constants included from Actionable

Actionable::QUERY_OPTIONS

Instance Method Summary collapse

Methods included from Putable

#set_form

Methods included from Actionable

#form, #initialize, #options, #params, #params_encoding, #query_options, #set_form, #set_params, #url

Instance Method Details

#setup(easy) ⇒ Object

Setup easy to make a PUT request.

Examples:

Setup.

put.setup(easy)

Parameters:

  • easy (Easy)

    The easy to setup.


16
17
18
19
20
21
22
# File 'lib/ethon/easy/http/put.rb', line 16

def setup(easy)
  super
  if form.empty?
    easy.upload = true
    easy.infilesize = 0
  end
end