App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
google.appengine.tools.old_dev_appserver.AppServerRequest Class Reference
Inheritance diagram for google.appengine.tools.old_dev_appserver.AppServerRequest:

Public Member Functions

def __init__
 
def __eq__
 
def __repr__
 

Public Attributes

 relative_url
 
 path
 
 headers
 
 infile
 
 force_admin
 

Static Public Attributes

list ATTRIBUTES
 

Detailed Description

Encapsulates app-server request.

Object used to hold a full appserver request.  Used as a container that is
passed through the request forward chain and ultimately sent to the
URLDispatcher instances.

Attributes:
  relative_url: String containing the URL accessed.
  path: Local path of the resource that was matched; back-references will be
    replaced by values matched in the relative_url. Path may be relative
    or absolute, depending on the resource being served (e.g., static files
    will have an absolute path; scripts will be relative).
  headers: Instance of mimetools.Message with headers from the request.
  infile: File-like object with input data from the request.
  force_admin: Allow request admin-only URLs to proceed regardless of whether
    user is logged in or is an admin.

Constructor & Destructor Documentation

def google.appengine.tools.old_dev_appserver.AppServerRequest.__init__ (   self,
  relative_url,
  path,
  headers,
  infile,
  force_admin = False 
)
Constructor.

Args:
  relative_url: Mapped directly to attribute.
  path: Mapped directly to attribute.
  headers: Mapped directly to attribute.
  infile: Mapped directly to attribute.
  force_admin: Mapped directly to attribute.

Member Function Documentation

def google.appengine.tools.old_dev_appserver.AppServerRequest.__eq__ (   self,
  other 
)
Used mainly for testing.

Returns:
  True if all fields of both requests are equal, else False.
def google.appengine.tools.old_dev_appserver.AppServerRequest.__repr__ (   self)
String representation of request.

Used mainly for testing.

Returns:
  String representation of AppServerRequest.  Strings of different
  request objects that have the same values for all fields compare
  as equal.

Member Data Documentation

list google.appengine.tools.old_dev_appserver.AppServerRequest.ATTRIBUTES
static
Initial value:
1 = ['relative_url',
2  'path',
3  'headers',
4  'infile',
5  'force_admin',
6  ]

The documentation for this class was generated from the following file: