http.StreamingHttpResponse.reason_phrase

StreamingHttpResponse.reason_phrase The HTTP reason phrase for the response. Changed in Django 1.9: reason_phrase no longer defaults to all capital letters. It now uses the HTTP standard’s default reason phrases. Unless explicitly set, reason_phrase is determined by the current value of status_code.

http.QueryDict.__setitem__()

QueryDict.__setitem__(key, value) [source] Sets the given key to [value] (a Python list whose single element is value). Note that this, as other dictionary functions that have side effects, can only be called on a mutable QueryDict (such as one that was created via copy()).

http.StreamingHttpResponse

class StreamingHttpResponse [source] The StreamingHttpResponse class is used to stream a response from Django to the browser. You might want to do this if generating the response takes too long or uses too much memory. For instance, it’s useful for generating large CSV files. Performance considerations Django is designed for short-lived requests. Streaming responses will tie a worker process for the entire duration of the response. This may result in poor performance. Generally speaking, yo

http.QueryDict.__init__()

QueryDict.__init__(query_string=None, mutable=False, encoding=None) [source] Instantiates a QueryDict object based on query_string. >>> QueryDict('a=1&a=2&c=3') <QueryDict: {'a': ['1', '2'], 'c': ['3']}> If query_string is not passed in, the resulting QueryDict will be empty (it will have no keys or values). Most QueryDicts you encounter, and in particular those at request.POST and request.GET, will be immutable. If you are instantiating one yourself, you can make it

http.StreamingHttpResponse.streaming

StreamingHttpResponse.streaming This is always True.

http.StreamingHttpResponse.status_code

StreamingHttpResponse.status_code The HTTP status code for the response. Changed in Django 1.9: Unless reason_phrase is explicitly set, modifying the value of status_code outside the constructor will also modify the value of reason_phrase.

http.QueryDict.__contains__()

QueryDict.__contains__(key) Returns True if the given key is set. This lets you do, e.g., if "foo" in request.GET.

http.QueryDict.urlencode()

QueryDict.urlencode(safe=None) [source] Returns a string of the data in query-string format. Example: >>> q = QueryDict('a=2&b=3&b=5') >>> q.urlencode() 'a=2&b=3&b=5' Optionally, urlencode can be passed characters which do not require encoding. For example: >>> q = QueryDict(mutable=True) >>> q['next'] = '/a&b/' >>> q.urlencode(safe='/') 'next=/a%26b/'

http.QueryDict.update()

QueryDict.update(other_dict) Takes either a QueryDict or standard dictionary. Just like the standard dictionary update() method, except it appends to the current dictionary items rather than replacing them. For example: >>> q = QueryDict('a=1', mutable=True) >>> q.update({'a': '2'}) >>> q.getlist('a') ['1', '2'] >>> q['a'] # returns the last '2'

http.QueryDict.__getitem__()

QueryDict.__getitem__(key) Returns the value for the given key. If the key has more than one value, __getitem__() returns the last value. Raises django.utils.datastructures.MultiValueDictKeyError if the key does not exist. (This is a subclass of Python’s standard KeyError, so you can stick to catching KeyError.)