Method: RestClient::Request#execute
- Defined in:
- lib/restclient/request.rb
#execute(&block) ⇒ Object
160 161 162 163 164 165 166 |
# File 'lib/restclient/request.rb', line 160 def execute & block # With 2.0.0+, net/http accepts URI objects in requests and handles wrapping # IPv6 addresses in [] for use in the Host request header. transmit uri, net_http_request_class(method).new(uri, processed_headers), payload, & block ensure payload.close if payload end |