utils.http package¶
Submodules¶
Module contents¶
- class utils.http.HttpRequest[源代码]¶
基类:
object
A basic HTTP request.
- accepted_types¶
Return a list of MediaType instances.
- property body¶
- build_absolute_uri(location=None)[源代码]¶
Build an absolute URI from the location and the variables available in this request. If no
location
is specified, build the absolute URI using request.get_full_path(). If the location is absolute, convert it to an RFC 3987 compliant URI and return it. If location is relative or is scheme-relative (i.e.,//example.com/
), urljoin() it to a base URL constructed from the request variables.
- property encoding¶
- get_signed_cookie(key, default=<object object>, salt='', max_age=None)[源代码]¶
Attempt to return a signed cookie. If the signature fails or the cookie has expired, raise an exception, unless the default argument is provided, in which case return that value.
- headers¶
- property scheme¶
- property upload_handlers¶
- utils.http.UserRequest¶
HttpRequest
的别名