doc(Response): "Sets..." ---> "Set..." (#1036)

This commit is contained in:
Kurt Griffiths 2017-04-26 23:06:23 -06:00 committed by John Vrbanac
parent 7b22daa3a6
commit 62a3fa46d3
1 changed files with 9 additions and 10 deletions

View File

@ -479,8 +479,7 @@ class Response(object):
def add_link(self, target, rel, title=None, title_star=None,
anchor=None, hreflang=None, type_hint=None):
"""
Add a link header to the response.
"""Add a link header to the response.
See also: https://tools.ietf.org/html/rfc5988
@ -599,7 +598,7 @@ class Response(object):
cache_control = header_property(
'Cache-Control',
"""Sets the Cache-Control header.
"""Set the Cache-Control header.
Used to set a list of cache directives to use as the value of the
Cache-Control header. The list will be joined with ", " to produce
@ -610,7 +609,7 @@ class Response(object):
content_location = header_property(
'Content-Location',
"""Sets the Content-Location header.
"""Set the Content-Location header.
This value will be URI encoded per RFC 3986. If the value that is
being set is already URI encoded it should be decoded first or the
@ -640,15 +639,15 @@ class Response(object):
content_type = header_property(
'Content-Type',
'Sets the Content-Type header.')
'Set the Content-Type header.')
etag = header_property(
'ETag',
'Sets the ETag header.')
'Set the ETag header.')
last_modified = header_property(
'Last-Modified',
"""Sets the Last-Modified header. Set to a ``datetime`` (UTC) instance.
"""Set the Last-Modified header. Set to a ``datetime`` (UTC) instance.
Note:
Falcon will format the ``datetime`` as an HTTP date string.
@ -657,7 +656,7 @@ class Response(object):
location = header_property(
'Location',
"""Sets the Location header.
"""Set the Location header.
This value will be URI encoded per RFC 3986. If the value that is
being set is already URI encoded it should be decoded first or the
@ -667,7 +666,7 @@ class Response(object):
retry_after = header_property(
'Retry-After',
"""Sets the Retry-After header.
"""Set the Retry-After header.
The expected value is an integral number of seconds to use as the
value for the header. The HTTP-date syntax is not supported.
@ -695,7 +694,7 @@ class Response(object):
accept_ranges = header_property(
'Accept-Ranges',
"""Sets the Accept-Ranges header.
"""Set the Accept-Ranges header.
The Accept-Ranges header field indicates to the client which
range units are supported (e.g. "bytes") for the target