Class: Ethon::Easy::Http::Post
- Inherits:
-
Object
- Object
- Ethon::Easy::Http::Post
- Includes:
- Actionable, Postable
- Defined in:
- lib/ethon/easy/http/post.rb
Overview
This class knows everything about making POST requests.
Instance Method Summary collapse
-
#setup(easy) ⇒ Object
Setup easy to make a POST request.
Methods included from Postable
Methods included from Actionable
#form, #initialize, #options, #params, #set_form, #set_params, #url
Instance Method Details
#setup(easy) ⇒ Object
Setup easy to make a POST request.
15 16 17 18 19 20 21 |
# File 'lib/ethon/easy/http/post.rb', line 15 def setup(easy) super if form.empty? easy.postfieldsize = 0 easy.copypostfields = "" end end |