Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Chainable methods #1390

Closed
71104 opened this Issue · 2 comments

2 participants

Alberto La Rocca TJ Holowaychuk
Alberto La Rocca

Probably this is more a documentation issue.

After a quick glance, some response methods don't seem to be documented as chainable, while I'd love them to be.

e.g. I'd like to write something like this:

res.status(404).type('image/png').sendfile('png_file_without_extension');

But the status method seems to be the only one documented as chainable.

TJ Holowaychuk
tj commented

any that do not return a value are chainable which is pretty much all the response methods

Alberto La Rocca

I figured it but I can't find the place in the documentation where that is stated...

TJ Holowaychuk tj closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.