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

How can we get the Date among other automatic headers set in the response #28302

Closed
niftylettuce opened this issue Jun 19, 2019 · 2 comments
Closed

Comments

@niftylettuce
Copy link

Ref: #772 (comment)

@niftylettuce
Copy link
Author

niftylettuce commented Jun 19, 2019

I figured it out:

const httpHeaders = require('http-headers');

// ...

httpHeaders(res._header)

Use the res._header property.

Ref: https://github.com/watson/http-headers

@niftylettuce
Copy link
Author

This should work for every version of Node I believe.

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

1 participant