Commit Graph

36 Commits

Author SHA1 Message Date
Ben Darnell eb61029aa2 web: Support renaming the XSRF cookie
This makes it possible to use the __Host- cookie prefix for increased
security
2023-03-30 20:25:26 +00:00
Ben Darnell 49bbd35727 web: Rename "secure_cookie" methods to "signed_cookie"
This more precisely states the kind of security that is provided, and
avoids confusion with the use of the word "secure" as a standard
cookie attribute and prefix.
2023-01-23 18:51:53 +00:00
Robin Roth c50aed0f96 mypy: Enable no_implicit_optional
"Implicit-optional" mode is on by default, but that default is intended to change in the indefinite future (python/peps#689, python/typing#275). Go ahead and change to the future explicit use of Optional.
2019-06-16 20:21:13 -04:00
Sadie Bartholomew 49241f3e85 Minor formatting & grammatical etc. edits to docs 2019-02-09 13:29:36 +00:00
Ben Darnell 09e2fd4376 web: Update docs 2018-12-30 11:48:43 -05:00
Ben Darnell 432473e321 docs: Doc and lint updates
Just enough to unbreak the build for now.
2018-07-14 16:58:48 -04:00
Ben Darnell 80f6a51728 docs: Start release notes for 5.1 2018-05-05 14:56:47 -04:00
Ben Darnell 987291b495 Release notes and doc updates for 4.5 2017-03-26 17:10:47 -04:00
Thomas Kluyver 078a4d1f51 Integrate websocket periodic pinging code from Jupyter
Closes gh-1640

As Ben requested on #1640, I've changed it to work in seconds rather
than milliseconds.

I'm not sure how we'd test something like this. I don't think we have
tests for it in Jupyter.
2016-02-15 14:41:27 +00:00
Ben Darnell 759ac2df1e Improve docs of URLSpec capturing groups
Inspired by https://groups.google.com/d/msg/python-tornado/eQ3wyusHCio/4eVVANYxAAAJ
2016-02-13 19:09:23 -05:00
Ben Darnell 64c0f06d68 Update tests and docs for recent changes 2015-10-24 13:18:37 -04:00
Ben Darnell 72251a29d2 Add Loader parameter to control whitespace mode.
Also add Application setting.

Closes #178.
2015-07-05 17:03:45 -04:00
Ben Darnell 01c78ebfcc Document RequestHandler.patch.
Add an example for overriding SUPPORTED_METHODS.
2015-05-09 21:55:00 -04:00
Martin Hoefling f3a7816eab Documentation for key versioning added 2015-04-19 15:19:58 +02:00
Ben Darnell b93b8405b3 Make many doc code blocks into sphinx doctests. 2015-02-09 00:19:47 -05:00
Ben Darnell bb00b7edc8 Add property setter for RequestHandler.locale 2014-08-12 10:03:36 -04:00
Ben Darnell f1edd3dd15 Merge branch 'guide'
* guide:
  Expand and rewrite the guide docs.
  Split overview.rst into separate files.
2014-07-04 16:04:09 -04:00
Ben Darnell 1b0cc391c7 Expand and rewrite the guide docs. 2014-07-04 15:54:19 -04:00
Ben Darnell 159e10d676 Rename the new-in-4.0 gzip parameter to HTTPServer.
All the gzip-related parameters are now explicit about whether
they compress or decompress and whether they apply to requests or
responses.  For all the parameters that existed prior to 4.0
the old names are accepted as well, but for the new ones in 4.0
we don't need to worry about backwards-compatibility.

This is motivated by the potential confusion around the use of
gzip as a parameter to the Application constructor to indicate
compression of responses and to the HTTPServer constructor to
indicate decompression of requests.
2014-06-30 23:32:50 -04:00
Ben Darnell 596038c284 Add new exception tornado.web.Finish to quietly end a request.
This allows error pages to be generated inline with the main code
instead of in write_error and is friendlier to generating error pages
from library code.

Closes #1064.
2014-06-19 09:51:53 -04:00
Ben Darnell 7a0eda1338 Remove async_callback wrapper functions, which have been obsolete since 1.1.
Closes #283.
2014-06-15 11:52:34 -04:00
Ben Darnell 72a5e4ced9 Merge branch 'branch3.2'
Conflicts:
	docs/releases.rst
	setup.py
	tornado/__init__.py
	tornado/websocket.py
2014-06-03 23:48:51 -04:00
Ben Darnell edfeb88d75 Docs for xsrf cookie change; 3.2.2 release notes. 2014-06-03 23:29:50 -04:00
Ben Darnell d19cba34a8 Merge branch 'branch3.2'
Conflicts:
	docs/releases.rst
	setup.py
	tornado/__init__.py
	tornado/test/web_test.py
	tornado/web.py
2014-05-05 23:21:35 -04:00
Ben Darnell ae864fa151 Document the cookie versioning interface. 2014-05-05 21:58:22 -04:00
Ben Darnell 425a31d2a5 Document all the new HTTP stuff 2014-04-27 00:02:07 -04:00
Ben Darnell 5d7e37c0c3 Fix doc references to HTTPRequest. 2014-02-23 15:57:18 -05:00
Ben Darnell be70cb085b Doc updates.
* Version-added tags
* Add some missing methods
* Ignore asyncio module for coverage reports
* Work around a sphinx 1.2 regression
2013-12-31 17:50:12 -05:00
Ben Darnell cd8c2918a2 Update next-release notes. 2013-11-03 21:10:56 -05:00
Travis Beauvais 30d15413d3 - Plural query/body arg methods.
- Updated Tests.
- Don't change signature of public methods.
2013-10-05 09:45:45 -07:00
Ben Darnell ca8495d934 Allow prepare to be asynchronous, and detect coroutines by their result.
The prepare method does not use the @asynchronous decorator, only
@gen.coroutine (or @return_future; it detects the Future return type).
The same logic is now available for the regular http verb methods as well.

Closes #605.
2013-05-12 19:46:41 -04:00
Ben Darnell e289658771 Release note and doc updates 2013-05-12 18:08:23 -04:00
Ben Darnell 4dee9157eb Add a distinct MissingArgumentError class for get_argument.
Closes #782.
2013-05-12 12:55:00 -04:00
Ben Darnell e4bba5ce21 Expand docs for @asynchronous decorator and other cleanups.
Closes #742.
2013-04-18 10:40:20 -04:00
Ben Darnell 9f3dec0c30 Fix most of the rest of the dangling references. 2013-03-16 01:21:53 -04:00
Ben Darnell 5872959a75 Move website/sphinx/ to docs/, remove rest of appengine website dir. 2013-03-10 16:05:20 -04:00