HTTP request objects. Ported from webapp2, refactored to support Python versions > 2.7, 3.0
Abstraction for an HTTP request.
Most extra methods and attributes are ported from webapp. Check the WebOb documentation for the ones not listed here.
A reference to the active WSGIApplication instance.
A reference to the active Response instance.
A reference to the matched Route.
The matched route positional arguments.
The matched route keyword arguments.
A dictionary to register objects used during the request lifetime.
Returns the query or POST argument with the given name.
We parse the query string and POST payload lazily, so this will be a slower operation on the first call.
Parameters: |
|
---|---|
Returns: | Returns the first value with the given name given in the request. Use the get_all method to return a list of all values with the specified argument name. |
Returns a list of query or POST arguments with the given name.
We parse the query string and POST payload lazily, so this will be a slower operation on the first call.
Parameters: |
|
---|---|
Returns: | A (possibly empty) list of values. |
Returns a list of the arguments provided in the query and/or POST.
The return value is a list of strings.
Parses the given int argument, limiting it to the given range.
Parameters: |
|
---|---|
Returns: | An int within the given range for the argument. |
Adds parameters compatible with WebOb >= 1.0: POST and **kwargs.
alias of Response