Switch branches/tags
Commits on Jan 21, 2011
  1. Move request logging from RequestHandler to Application.

    Logging can now be configured with either a subclass or setting of
    Application.  This replaces the previous method of overriding a private
    method of RequestHandler, which was difficult to do for built-in handlers
    (StaticFileHandler and RedirectHandler).
    bdarnell committed Jan 21, 2011
Commits on Jan 20, 2011
  1. Use kwargs when constructing RedirectHandlers.

    Closes #205.
    bdarnell committed Jan 20, 2011
Commits on Jan 19, 2011
  1. Added missing attribute "stream" in call to getpeercert() in HTTPRequ…

    rickard.bottcher committed Jan 19, 2011
Commits on Jan 13, 2011
Commits on Jan 12, 2011
Commits on Jan 10, 2011
  1. reset() only set current position back to 0. What we want here is tru…

    But, per discussion, creating new StringIO() is cheaper.
    Didip Kerabat committed Jan 10, 2011
  2. Further optimization by using tell() and reset()

    Didip Kerabat committed Jan 10, 2011
  3. use cStringIO on _read_buffer and _write_buffer

    Didip Kerabat committed Jan 10, 2011
Commits on Jan 6, 2011
  1. Use a list instead of a set for IOLoop callbacks. This preserves order

    and allows the same callback object to be reused.
    A set was originally used to support remove_callback(), but that method
    was removed in the 1.1 release.
    bdarnell committed Jan 6, 2011
Commits on Jan 3, 2011
  1. Log exceptions with exc_info=True instead of exc_info=e.

    The logging module checks to see if the value passed for exc_info is a
    tuple, and if so assumes it contains (type, value, traceback).
    A bug in python 2.5 and 2.6 causes context manager's __exit__ methods
    to sometimes receive a tuple instead of an exception object, which causes
    a nonsensical message to be logged.
    bdarnell committed Jan 3, 2011
Commits on Dec 28, 2010
  1. Fix stack trace logging for uncaught RequestHandler exceptions.

    _handle_request_exception is a private method, but since I've endorsed
    overriding it on the mailing list preserve backwards compatibility by
    re-raising the exception so it appears in sys.exc_info().
    Closes #199.
    bdarnell committed Dec 28, 2010
Commits on Dec 17, 2010
Commits on Dec 14, 2010
  1. Construct ErrorHandler with kwargs instead of positional arguments

    for consistency with normal handler construction (and compatibility with
    the initialize() changes from a couple of commits ago).
    Closes #194.
    bdarnell committed Dec 14, 2010
Commits on Dec 13, 2010
  1. Override initialize() instead of __init__() in RequestHandler subclas…

    This is a slight simplification and makes it easier to create further
    application-specific subclasses.
    Closes #191.
    bdarnell committed Dec 13, 2010
Commits on Dec 11, 2010
  1. Add a simple HTTP benchmark

    bdarnell committed Dec 11, 2010
Commits on Dec 10, 2010
  1. Avoid use of the @contextlib.contextmanager decorator.

    This decorator has over 5x the overhead of a hand-written class
    with __enter__ and __exit__ methods.
    bdarnell committed Dec 10, 2010
Commits on Dec 3, 2010
Commits on Dec 1, 2010
Commits on Nov 30, 2010
  1. A few fixes for FacebookGraphMixin

    - Added error handler for _on_access_token
    - Modified to allow for extra returned fields in the auth call
    - Removed username, which seems to have been deprecated
    slay2k committed Nov 29, 2010
Commits on Nov 29, 2010
  1. Use request.uri instead of request.path as default redirect for

    This allows the next parameter (added by @authenticated) to be preserved.
    Closes #161.
    bdarnell committed Nov 29, 2010
  2. Log malformed HTTP requests more gracefully.

    Malformed requests are now logged as a single INFO line (which
    includes the IP address) instead of a verbose but uninformative stack
    bdarnell committed Nov 29, 2010
Commits on Nov 23, 2010
  1. Fix bug in multipart/form-data requests.

    In Firefox and Safari, I'm seeing k = " boundary"
    for multipart/form-data posts.  
    " boundary" != "boundary", so the mime fields
    aren't parsed.  
    This commit gets rid of the leading space.
    joshstaiger committed Nov 23, 2010
Commits on Nov 20, 2010
Commits on Nov 19, 2010
Commits on Nov 18, 2010