Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flush alias #74

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Flush alias #74

wants to merge 3 commits into from

Commits on Jun 27, 2016

  1. Add flushCompression as an alias for flush

    Supports use such as:
    
    ```javascript
    // Not going to write again for a while.  If compression middleware is
    // installed let's tell it to flush what we've got through to the client.
    if (res.flushCompression) {
        res.flushCompression();
    }
    ```
    
    Currently the `res` object has a `flush` method regardless of whether
    compression middleware is installed.  The built-in `flush` method issues a
    noisy deprecation warning.  This patch provides an alias for the `flush`
    method to allow detection of the compression middleware's `flush`.
    
    This addresses expressjs#72.
    gigabo committed Jun 27, 2016
    Configuration menu
    Copy the full SHA
    287d3a2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    14cdf4f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1321557 View commit details
    Browse the repository at this point in the history