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.
Constant Summary
Constants included from Actionable
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, #params_encoding, #query_options, #set_form, #set_params, #url
Instance Method Details
#setup(easy) ⇒ Object
Setup easy to make a POST request.
16 17 18 19 20 21 22 |
# File 'lib/ethon/easy/http/post.rb', line 16 def setup(easy) super if form.empty? easy.postfieldsize = 0 easy.copypostfields = "" end end |