Ben Darnell
afb82f6868
Disable SSL test on versions of libcurl with blocking SSL handshakes.
...
(using gnutls instead of openssl and libcurl < 7.21.0).
2010-09-07 17:02:50 -07:00
Ben Darnell
bb8d2fa458
Disable SSL test on python 2.5
2010-09-07 16:01:22 -07:00
Ben Darnell
2e288577a1
Use the older name for threading.activeCount for compatibility with python 2.5
2010-09-07 16:01:04 -07:00
Ben Darnell
e6d93d9350
Fix error in comment
2010-09-07 15:19:21 -07:00
Ben Darnell
6d7e515ea4
Fix typo in websocket.py
...
Closes #133 .
2010-09-06 11:24:09 -07:00
Ben Darnell
8e34c59edd
Remove superfluous lambdas in tornado.escape.
...
Closes #132 .
2010-09-06 00:00:52 -07:00
Ben Darnell
93fc3d0935
Document why RequestHandler.write does not convert lists to JSON.
2010-09-04 20:38:59 -07:00
Ben Darnell
890d829171
Add more documentation for request.files.
2010-09-04 12:19:46 -07:00
Joe Bowman
5b9e79e733
auth.py updates for OAuth 1.0a and 2.0.
...
OAuthMixin now supports both 1.0a and 1.0 (defaults to 1.0a). TwitterMixin
and GoogleMixin now use 1.0a, FriendfeedMixin remains at 1.0. This adds
support for the callback_uri parameter to TwitterMixin.
New classes OAuth2Mixin and FacebookGraphMixin are introduced for the new
Facebook APIs.
Backwards compatibility notes:
Pending authorizations begun prior to this change will not be able to
be completed after it (tokens issued under prior versions of this code
will still work; this warning applies only to users who have started
but not yet completed their initial authorizations).
If you have used OAuthMixin directly (not one of the subclasses in this
module) to access a service that does not support OAuth 1.0a, set
_OAUTH_VERSION = "1.0" in your subclass.
Pull requests:
http://github.com/facebook/tornado/pull/126
http://github.com/facebook/tornado/pull/128
http://github.com/facebook/tornado/pull/130
Written by Joe Bowman, rebased from 1572ecc672
by Ben Darnell.
2010-09-04 11:56:28 -07:00
Ben Darnell
d1b58414e0
Remove the statement that tornado has only been tested with firefox.
2010-09-01 15:27:32 -07:00
Ben Darnell
0aae8f9052
Remove __del__ method from HTTPResponse. Closing cStringIO objects isn't
...
really necessary, and the presence of a __del__ method prevents python's
GC from breaking cyclical references (which happen on errors as HTTPError
and HTTPResponse refer to each other).
Closes #125 .
2010-09-01 15:16:57 -07:00
Ben Darnell
aab1be8bc8
Update class docstring for HTTPServer.
...
Closes #123 .
2010-08-30 12:18:21 -07:00
Aaron Raddon
2ccfb35ff2
adding support for http method OPTIONS used by firefox, safari, for cross domain
...
Closes #46 .
2010-08-26 16:03:34 -07:00
Ben Darnell
b4c5aba7c2
Fix reference to slice.indices.
...
Is this used anywhere?
Closes : #13 .
2010-08-26 11:52:41 -07:00
Ben Darnell
8666774294
Document the limitations of multi-process mode.
...
Closes #65 .
2010-08-26 11:40:49 -07:00
Ben Darnell
c4413f5b63
Document the fact that add_handlers should only be called once for each
...
host_pattern.
2010-08-26 11:32:26 -07:00
Ben Darnell
318ec31c3d
Set pycurl.NOSIGNAL when multiple threads are detected.
...
Closes #121 .
2010-08-26 11:10:10 -07:00
Ben Darnell
fcab3583c0
Set PeriodicCallback._running to True in start instead of __init__
...
Closes #72 .
2010-08-25 17:17:44 -07:00
Ben Darnell
803f33c153
Add a tornado.version variable, and use it anywhere we use the current
...
tornado version to produce a Server: header.
Closes #22 .
2010-08-25 16:54:02 -07:00
Ben Darnell
3f0740c894
Check in Jacob Kristhammar's updated websocket implementation.
...
http://groups.google.com/group/python-tornado/browse_thread/thread/065823d0c6593b85
2010-08-25 16:34:41 -07:00
Ben Darnell
e571668d89
Add more documentation of overridable methods in RequestHandler
2010-08-25 15:34:21 -07:00
Ben Darnell
1580728fe8
Move AuthRedirectTest from httpserver_test to web_test where it belongs
2010-08-25 11:36:44 -07:00
Ben Darnell
b398a81674
Add a test for HTTPServer's SSL support
2010-08-25 11:33:09 -07:00
Ben Darnell
b3e953ea0a
Don't swallow SSL errors - always reraise or return
2010-08-25 11:32:10 -07:00
Ben Darnell
9d605f2bb2
Make the SSL handshake non-blocking.
...
Based on work by mgenti. See
197e88e62f
and its ancestors.
2010-08-19 14:25:15 -04:00
Ben Darnell
252a2bb92d
Merge remote branch 'tomhsx/proxy-support'
2010-08-19 13:57:47 -04:00
Ben Darnell
4e10c31fe8
Add HTTPServer(..., xheaders=True) to the web documentation.
2010-08-19 13:52:09 -04:00
Ben Darnell
55b4eae8af
Add a links section to the website
2010-08-19 13:48:08 -04:00
tomhsx
00f9e48d2a
Added proxy support to httpclient
2010-08-16 01:37:16 -04:00
Ben Darnell
51d6ba42dd
Suppress tornado's default logging setup if there is any existing logging
...
config, not just --log_file_prefix.
2010-08-15 18:17:42 -07:00
Ben Darnell
221058e1cb
In LogTrapTestCase, leave everything alone rather than throwing an exception
...
if the logging config is not as expected.
2010-08-15 18:11:48 -07:00
Ben Darnell
551ea94d24
Initialize member variables in AsyncTestCase.__init__ instead of setUp
...
to avoid masking the real error in _stack_context() if run() throws an
exception.
2010-08-15 18:04:34 -07:00
Ben Darnell
33fe4a4e90
Fix another link to 1.0.1
2010-08-13 14:49:03 -07:00
Ben Darnell
0ece9ed61f
Check in symlink to tornado package in website directory
2010-08-13 10:51:50 -07:00
Ben Darnell
d8b265dd8a
Update links to 1.0.1 release
2010-08-13 10:50:37 -07:00
Ben Darnell
bbc1ef1288
Test case for secure cookie change
2010-08-13 10:19:26 -07:00
Ben Darnell
a770a7cf6c
Check for far-future timestamps in secure cookies.
2010-08-13 10:18:28 -07:00
Ben Darnell
8d607129d9
Add future import to fix tests on 2.5
2010-08-13 00:34:23 -07:00
Ben Darnell
db3d021921
Add a mention of on_connection_close to the html docs. Add a
...
warning about proxies keeping connections open.
2010-08-11 11:34:40 -07:00
Ben Darnell
41c14b82c4
Remove the ability to pre-bind parameters in stack_context.wrap.
...
This functionality was incorrect and unused, and unlike async_callback,
I don't think the implicit binding is a good fit for this API.
2010-08-10 14:00:18 -07:00
Ben Darnell
9d4444e341
Reindent everything to 4 spaces.
2010-08-10 13:57:32 -07:00
Ben Darnell
02d07def3a
StackContext should not re-wrap previously-wrapped callbacks.
...
This allows for library code to "pop" back up to a previous version of the
stack.
2010-08-10 13:51:53 -07:00
Ben Darnell
cd888f2f00
Be less picky about line endings in headers in httpclient.
...
HTTP requires that lines end with \r\n, but some buggy servers (including
news.ycombinator.com) just use \n. Libcurl tolerates this and sends the
line as-is to the header callback, so we need to be prepared to handle
either form.
2010-08-09 14:33:32 -07:00
Ben Darnell
00ce7d4d99
Add a simple main function to httpclient.py for manual testing
2010-08-09 14:12:33 -07:00
Ben Darnell
fef1129b16
The periodic call to multi_socket_all needs to be followed by
...
_finish_pending_request or else those requests won't be finished until
after the next one is started.
2010-08-09 14:01:48 -07:00
Ben Darnell
91c1bcba8f
Record more detailed timing information from AsyncHTTPClient, and make
...
it available as HTTPResponse.time_info.
2010-08-06 16:09:04 -07:00
Ben Darnell
98d4126169
When login_url is absolute, use an absolute url for the next redirect.
...
Closes: GH-119
2010-08-06 13:12:14 -07:00
Ben Darnell
ae3c354547
Use the right IOLoop in AsyncHTTPClient's PeriodicCallback
2010-08-04 18:47:42 -07:00
Ben Darnell
e5bd0c066a
Use POST instead of GET for OpenID check_authentication.
...
Google apparently doesn't check for this, but other OpenID providers do.
2010-08-04 17:42:07 -07:00
Ben Darnell
becb5f2703
Suppress libcurl's magic "Expect: 100-continue" behavior.
...
This was motivated by the discovery of bug
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3039744&group_id=976
2010-08-04 17:40:24 -07:00