From 059c9ab24c41e1460fd8b7af65ea8d5f80f1aa82 Mon Sep 17 00:00:00 2001 From: Sergey Parkhomenko Date: Thu, 11 Dec 2014 00:25:05 +0200 Subject: Fixed #23977 -- Added setdefault() method to HttpResponse --- docs/ref/request-response.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/ref') diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index 3ae8510ce8..3f4d371df5 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -708,6 +708,12 @@ Methods Returns ``True`` or ``False`` based on a case-insensitive check for a header with the given name. +.. method:: HttpResponse.setdefault(header, value) + + .. versionadded:: 1.8 + + Sets a header unless it has already been set. + .. method:: HttpResponse.set_cookie(key, value='', max_age=None, expires=None, path='/', domain=None, secure=None, httponly=False) Sets a cookie. The parameters are the same as in the -- cgit v1.3