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

Add .headersSent to mockResponse #12

Closed
robballou opened this issue Mar 17, 2014 · 3 comments
Closed

Add .headersSent to mockResponse #12

robballou opened this issue Mar 17, 2014 · 3 comments

Comments

@robballou
Copy link

The Node ServerResponse class has a property for detecting if headers have been sent:

http://nodejs.org/api/http.html#http_response_headerssent

This would be great if it were supported by this module. Thanks!

@estilles
Copy link

estilles commented Mar 7, 2015

@robballou, I know this issue is a bit old, but I think it would be a great addition to the project. I'm going to work on a PR to add this feature.

@estilles estilles changed the title Support headersSent property Add .headersSent to mockResponse Mar 7, 2015
@estilles estilles added this to the v2.0 milestone Mar 20, 2015
@estilles
Copy link

Deferring fix for this issue until v2.0.

@github-actions
Copy link

Stale issue message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants