diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/request_response.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/request_response.txt b/docs/request_response.txt index cf68505066..5c1abfa2ad 100644 --- a/docs/request_response.txt +++ b/docs/request_response.txt @@ -161,6 +161,16 @@ Methods Example: ``"/music/bands/the_beatles/?print=true"`` +``build_absolute_uri(location)`` + Returns the absolute URI form of ``location``. If no location is provided, + the location will be set to ``request.get_full_path()``. + + If the location is already an absolute URI, it will not be altered. + Otherwise the absolute URI is built using the server variables available in + this request. + + Example: ``"http://example.com/music/bands/the_beatles/?print=true"`` + ``is_secure()`` Returns ``True`` if the request is secure; that is, if it was made with HTTPS. |
