Model HTTP request data.
This object provides access to request data. This includes, the input headers, form data, server data, and cookies.
Request objects are created by the object publisher and will be passed to published objects through the argument name, REQUEST.
The request object is a mapping object that represents a collection of variable to value mappings. In addition, variables are divided into four categories:
These variables include input headers, server data, and other request-related data. The variable names are as specified in the CGI specification
These are data extracted from either a URL-encoded query string or body, if present.
These are the cookie data, if present.
Data that may be set by an application object.
The form attribute of a request is actually a Field Storage object. When file uploads are used, this provides a richer and more complex interface than is provided by accessing form data as items of the request. See the FieldStorage class documentation for more details.
The request object may be used as a mapping object, in which case values will be looked up in the order: environment variables, other variables, form data, and then cookies.
URL
(type: NoneType
)
None
annotations
(type: member_descriptor
)
<member 'annotations' of 'BaseRequest' objects>
bodyStream
(type:
property
)
<property object at 0x40c495cc>
cookies
(type: NoneType
)
None
debug
(type: member_descriptor
)
<member 'debug' of 'BaseRequest' objects>
environment
(type: NoneType
)
None
headers
(type: NoneType
)
None
interaction
(type: member_descriptor
)
<member 'interaction' of 'BaseRequest' objects>
locale
(type:
property
)
<property object at 0x40c49d9c>
method
(type: member_descriptor
)
<member 'method' of 'HTTPRequest' objects>
principal
(type:
property
)
<property object at 0x40c49554>
publication
(type:
property
)
<property object at 0x40c494dc>
response
(type:
property
)
<property object at 0x40c495a4>
retry_max_count
(type:
int
)
3
close()
See IPublicationRequest
get(key, default=None)
See Interface.Common.Mapping.IReadMapping
getApplicationURL(depth=0, path_only=False)
See IHTTPApplicationRequest
getCookies()
See IHTTPApplicationRequest
getHeader(name, default=None, literal=False)
See IHTTPRequest
getPositionalArguments()
See IPublicationRequest
getTraversalStack()
See IPublicationRequest
getURL(level=0, path_only=False)
getVirtualHostRoot()
has_key(key)
See Interface.Common.Mapping.IReadMapping
hold(object)
See IPublicationRequest
items()
See Interface.Common.Mapping.IEnumerableMapping
keys()
See Interface.Common.Mapping.IEnumerableMapping
processInputs()
See IPublisherRequest
retry()
See IPublisherRequest
setApplicationServer(host, proto='http', port=None)
setPathSuffix(steps)
See IHTTPRequest
setPrincipal(principal)
See IPublicationRequest
setPublication(pub)
See IPublisherRequest
setTraversalStack(stack)
See IPublicationRequest
setVirtualHostRoot(names=())
setupLocale()
shiftNameToApplication()
Add the name being traversed to the application name
This is only allowed in the case where the name is the first name.
A Value error is raise if the shift can't be performed.
supportsRetry()
See IPublisherRequest
traverse(obj)
See IPublisherRequest
unauthorized(challenge)
See IHTTPCredentials
values()
See Interface.Common.Mapping.IEnumerableMapping