Lines Matching refs:Request
83 __all__ = ['BaseRequest', 'Request', 'LegacyRequest']
103 ## The limit after which request bodies should be stored on disk
104 ## if they are read in (under this, and the request body is stored
118 "You unicode_errors=%r to the Request constructor. Passing a "
119 "``unicode_errors`` value to the Request is no longer "
126 "You passed decode_param_names=%r to the Request constructor. "
127 "Passing a ``decode_param_names`` value to the Request "
134 "You passed charset=%r to the Request constructor. As of "
135 "WebOb 1.2, if your application needs a non-UTF-8 request "
136 "charset, please construct the request without a charset or "
254 # BaseRequest and Request (due to AdhocAttrMixin.__setattr__)
259 Input stream of the request (wsgi.input).
304 Get the body of the request (wsgi.input) as a seekable file-like
366 All the request headers as a case-insensitive dictionary-like
483 The path of the request, without host or query string
492 request, without host but with query string
503 The full request URL, including QUERY_STRING
513 Resolve other_url relative to the request URL.
537 request and None is returned.
652 Note: this isn't set by every XMLHttpRequest request, it is
677 domain = request.host
685 ``request.domain`` will return ``foo.example.com``.
687 Note that this value cannot be *set* on the request. To set the host
688 value use :meth:`webob.request.Request.host` instead.
697 Return the content of the request body.
709 raise TypeError("You can only set Request.body to bytes (not %r)"
724 """Access the body of the request as JSON"""
741 "You cannot access Request.text unless charset is set")
751 "You can only set Request.text to a unicode string "
765 request. Returns an empty dict-like object for non-form requests.
772 return NoVars('Not a form request')
851 the query string and request body.
860 Return a dictionary of cookies as found in the request.
872 Copy the request and environment object.
884 Copies the request and environment object, but turning this request
885 into a GET along the way. If this was a POST request (or any other
886 verb) then it becomes GET, and the request body is thrown away.
949 another request object and that is not desired.
998 Create a tempfile to store big request body.
1010 Remove headers that make the request conditional.
1057 type='request')
1065 value = CacheControl(value, type='request')
1131 Return HTTP bytes representing this request.
1181 Create a request from HTTP bytes data. If the bytes contain
1182 extra data after the request, raise a ValueError.
1206 """Read a request from a file-like object (it must implement
1209 It will read up to the end of the request, not the end of the
1210 file (unless the request is a POST or PUT and has no
1213 This reads the request as represented by ``str(req)``; it may
1214 not read every valid HTTP request properly.
1231 raise ValueError('Bad HTTP request line: %r' % start_line)
1306 If ``application`` is not given, this will send the request to
1336 Create a blank request environ (and Request wrapper) with the
1423 class Request(AdhocAttrMixin, BaseRequest):
1424 """ The default request implementation """
1621 """Encode a multipart request body into a string"""