pyrax
Python Bindings for the Rackspace Cloud
 All Classes Namespaces Files Functions Variables Properties
Functions | Variables
pyrax::http Namespace Reference

Functions

def request
 Handles all the common functionality required for API calls.
def http_log_req
 When pyrax.get_http_debug() is True, outputs the equivalent `curl` command for the API request being made.
def http_log_resp
 When pyrax.get_http_debug() is True, outputs the response received from the API request.

Variables

dictionary req_methods
 verify_ssl = False

Function Documentation

def pyrax.http.http_log_req (   method,
  uri,
  args,
  kwargs 
)

When pyrax.get_http_debug() is True, outputs the equivalent `curl` command for the API request being made.

def pyrax.http.http_log_resp (   resp,
  body 
)

When pyrax.get_http_debug() is True, outputs the response received from the API request.

def pyrax.http.request (   method,
  uri,
  args,
  kwargs 
)

Handles all the common functionality required for API calls.

Returns the resulting response object.

Formats the request into a dict representing the headers and body that will be used to make the API call.


Variable Documentation

dictionary req_methods
Initial value:
00001 {
00002     "HEAD": requests.head,
00003     "GET": requests.get,
00004     "POST": requests.post,
00005     "PUT": requests.put,
00006     "DELETE": requests.delete,
00007     "PATCH": requests.patch,
00008     }
verify_ssl = False
 All Classes Namespaces Files Functions Variables Properties