07 / 07

List all response methods?

  1. 1

    res.download(): Prompt a file to be downloaded.

  2. 2

    res.end(): End the response process.

  3. 3

    res.json(): Send a JSON response.

  4. 4

    res.jsonp(): Send a JSON response with JSONP support.

  5. 5

    res.redirect(): Redirect a request.

  6. 6

    res.render(): Render a view template.

  7. 7

    res.send(): Send a response of various types.

  8. 8

    res.sendFile(): Send a file as an octet stream.

  9. 9

    res.sendStatus(): Set the response status code and send its string representation as the response body.