Package restkit :: Package contrib :: Module webob_api :: Class Request
[hide private]

Class Request

source code

                  object --+        
                           |        
webob.request.AdhocAttrMixin --+    
                               |    
                  object --+   |    
                           |   |    
   webob.request.BaseRequest --+    
                               |    
           webob.request.Request --+
                                   |
                                  Request

Nested Classes [hide private]

Inherited from webob.request.BaseRequest: ResponseClass

Instance Methods [hide private]
 
get_response(self)
Like ``.call_application(application)``, except returns a response object with ``.status``, ``.headers``, and ``.body`` attributes.
source code
 
__call__(self)
Like ``.call_application(application)``, except returns a response object with ``.status``, ``.headers``, and ``.body`` attributes.
source code
 
set_url(self, url) source code

Inherited from webob.request.AdhocAttrMixin: __delattr__, __getattr__, __setattr__

Inherited from webob.request.BaseRequest: __init__, __repr__, __str__, as_bytes, as_string, as_text, call_application, copy, copy_body, copy_get, decode, encget, encset, make_body_seekable, make_default_send_app, make_tempfile, path_info_peek, path_info_pop, relative_url, remove_conditional_headers, send

Inherited from webob.request.BaseRequest (private): _body__del, _body__get, _body__set, _body_file__del, _body_file__get, _body_file__set, _cache_control__del, _cache_control__get, _cache_control__set, _check_charset, _content_type__get, _content_type__set, _copy_body_tempfile, _headers__get, _headers__set, _host__del, _host__get, _host__set, _is_body_readable__get, _is_body_readable__set, _json_body__del, _json_body__get, _json_body__set, _text__del, _text__get, _text__set, _update_cache_control, _urlargs__del, _urlargs__get, _urlargs__set, _urlvars__del, _urlvars__get, _urlvars__set

Inherited from object: __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from webob.request.BaseRequest: blank, from_bytes, from_file, from_string, from_text

Class Variables [hide private]

Inherited from webob.request.AdhocAttrMixin (private): _setattr_stacklevel

Inherited from webob.request.BaseRequest: request_body_tempfile_limit

Inherited from webob.request.BaseRequest (private): _charset, _headers

Properties [hide private]
  get
  post
  put
  head
  delete

Inherited from webob.request.BaseRequest: GET, POST, accept, accept_charset, accept_encoding, accept_language, application_url, authorization, body, body_file, body_file_raw, body_file_seekable, cache_control, charset, client_addr, content_length, content_type, cookies, date, headers, host, host_port, host_url, http_version, if_match, if_modified_since, if_none_match, if_range, if_unmodified_since, is_body_readable, is_body_seekable, is_xhr, json, json_body, max_forwards, method, params, path, path_info, path_qs, path_url, pragma, query_string, range, referer, referrer, remote_addr, remote_user, scheme, script_name, server_name, server_port, str_GET, str_POST, str_cookies, str_params, text, upath_info, url, url_encoding, urlargs, urlvars, uscript_name, user_agent

Inherited from webob.request.BaseRequest (private): _content_type_raw

Inherited from object: __class__

Method Details [hide private]

get_response(self)

source code 

Like ``.call_application(application)``, except returns a response object with ``.status``, ``.headers``, and ``.body`` attributes.

This will use ``self.ResponseClass`` to figure out the class of the response object to return.

If ``application`` is not given, this will send the request to ``self.make_default_send_app()``

Overrides: webob.request.BaseRequest.send
(inherited documentation)