http.HttpResponse.__getitem__()

HttpResponse.__getitem__(header) Returns the value for the given header name. Case-insensitive.

http.HttpResponseBadRequest

class HttpResponseBadRequest [source] Acts just like HttpResponse but uses a 400 status code.

http.HttpResponse.streaming

HttpResponse.streaming This is always False. This attribute exists so middleware can treat streaming responses differently from regular responses.

http.HttpResponse.writelines()

HttpResponse.writelines(lines) [source] Writes a list of lines to the response. Line separators are not added. This method makes an HttpResponse instance a stream-like object.

http.HttpResponse.writable()

HttpResponse.writable() [source] Always True. This method makes an HttpResponse instance a stream-like object.

http.HttpResponse.tell()

HttpResponse.tell() [source] This method makes an HttpResponse instance a file-like object.

http.HttpResponse.write()

HttpResponse.write(content) [source] This method makes an HttpResponse instance a file-like object.

http.HttpResponse.set_signed_cookie()

HttpResponse.set_signed_cookie(key, value, salt='', max_age=None, expires=None, path='/', domain=None, secure=None, httponly=True) Like set_cookie(), but cryptographic signing the cookie before setting it. Use in conjunction with HttpRequest.get_signed_cookie(). You can use the optional salt argument for added key strength, but you will need to remember to pass it to the corresponding HttpRequest.get_signed_cookie() call.

http.HttpResponse.setdefault()

HttpResponse.setdefault(header, value) Sets a header unless it has already been set.

http.HttpResponse.seekable()

HttpResponse.seekable() New in Django 1.10: Always False. This method makes an HttpResponse instance a stream-like object.