Class: Net::HTTP
- Inherits:
-
Object
- Object
- Net::HTTP
- Defined in:
- lib/restclient/net_http_ext.rb
Instance Method Summary collapse
Instance Method Details
#__request__ ⇒ Object
10 |
# File 'lib/restclient/net_http_ext.rb', line 10 alias __request__ request |
#request(req, body = nil, &block) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/restclient/net_http_ext.rb', line 12 def request(req, body=nil, &block) if body != nil && body.respond_to?(:read) req.body_stream = body return __request__(req, nil, &block) else return __request__(req, body, &block) end end |