method
request
rails latest stable - Class:
ActiveResource::Connection
Method deprecated or moved
This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.
request(method, path, *arguments)private
Makes a request to the remote service.
# File activeresource/lib/active_resource/connection.rb, line 109
def request(method, path, *arguments)
result = ActiveSupport::Notifications.instrument("request.active_resource") do |payload|
payload[:method] = method
payload[:request_uri] = "#{site.scheme}://#{site.host}:#{site.port}#{path}"
payload[:result] = http.send(method, path, *arguments)
end
handle_response(result)
rescue Timeout::Error => e
raise TimeoutError.new(e.message)
rescue OpenSSL::SSL::SSLError => e
raise SSLError.new(e.message)
end Related methods
- Instance methods
- auth_type=
- delete
- get
- head
- password=
- post
- proxy=
- put
- site=
- ssl_options=
- timeout=
- user=
- Class methods
- new
- requests
- Private methods
-
apply_ssl_options -
auth_attributes_for -
authorization_header -
build_request_headers -
client_nonce -
configure_http -
default_header -
digest_auth_header -
extract_params_from_response -
handle_response -
http -
http_format_header -
legitimize_auth_type -
new_http -
request -
response_auth_header -
with_auth