Skip to content

Commit

Permalink
Merge pull request #264 from stevepiercy/master
Browse files Browse the repository at this point in the history
Improve reST syntax, grammar.
  • Loading branch information
stevepiercy committed Jul 21, 2016
2 parents 51e62e7 + 94102ae commit 7a6395d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/index.txt
Expand Up @@ -103,18 +103,18 @@ is mounted at ``http://localhost/app-root``.

``req.url``:
The full request URL, with query string, e.g.,
``'http://localhost/app-root/doc?article_id=10'``
``'http://localhost/app-root/doc?article_id=10'``.

``req.application_url``:
The URL of the application (just the SCRIPT_NAME portion of the
path, not PATH_INFO). E.g., ``'http://localhost/app-root'``
The URL of the application (just the ``SCRIPT_NAME`` portion of the
path, not ``PATH_INFO``), e.g., ``'http://localhost/app-root'``.

``req.host_url``:
The URL with the host, e.g., ``'http://localhost'``
The URL with the host, e.g., ``'http://localhost'``.

``req.relative_url(url, to_application=False)``:
Gives a URL, relative to the current URL. If ``to_application``
is True, then resolves it relative to ``req.application_url``.
is True, then the URL is resolved relative to ``req.application_url``.

Methods
-------
Expand Down

0 comments on commit 7a6395d

Please sign in to comment.