Class: RestClient::Request

Class | RestClient::Request
In: | lib/restclient/exceptions.rb lib/restclient/request.rb
Parent: | Object

This class is used internally by RestClient to send the request, but you can also access it internally if you‘d like to use a method not directly supported by the main API. For example:

      RestClient::Request.execute(:method => :head, :url => 'http://example.com')

### Methods

decode default_headers display_log execute execute execute_inner fetch_body make_headers net_http_class net_http_request_class new parse_url parse_url_with_auth process_payload process_result request_log response_log setup_credentials transmit

### Constants

Redirect | = | RestClient::Redirect
Unauthorized | = | RestClient::Unauthorized
RequestFailed | = | RestClient::RequestFailed

### Attributes

cookies | [R] |
headers | [R] |
method | [R] |
open_timeout | [R] |
password | [R] |
payload | [R] |
raw_response | [R] |
ssl_ca_file | [R] |
ssl_client_cert | [R] |
ssl_client_key | [R] |
timeout | [R] |
url | [R] |
user | [R] |
verify_ssl | [R] |

### Public Class methods

decode(content_encoding, body)
execute(args)
new(args)

### Public Instance methods

default_headers()
display_log(msg)
execute()
execute_inner()
fetch_body(http_response)
make_headers(user_headers)
net_http_class()
net_http_request_class(method)
parse_url(url)
parse_url_with_auth(url)
process_payload(p=nil, parent_key=nil)
process_result(res)
request_log()
response_log(res)
setup_credentials(req)
transmit(uri, req, payload)

[Validate]