Chainable methods #1390

Closed
71104 opened this Issue Oct 28, 2012 · 2 comments

Projects

None yet

2 participants

71104 commented Oct 28, 2012

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.

Owner
tj commented Oct 28, 2012

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

71104 commented Oct 28, 2012

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

@tj tj closed this Feb 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment