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

Chainable methods #1390

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

Chainable methods #1390

71104 opened this issue Oct 28, 2012 · 2 comments

Comments

@71104
Copy link

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.

@tj
Copy link
Member

tj commented Oct 28, 2012

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

@71104
Copy link
Author

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 as completed Feb 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants