扫码关注官方订阅号
nodejs获取Response Header 不是请求头
走同样的路,发现不同的人生
只有这个:response.getHeader(name)
response.getHeader(name)
response.getHeader('content-type')
貌似没有获取所有Header
https://nodejs.org/docs/latest-v0.12.x/api/http.html#http_class_http_serverresponse
如果用框架就很简单了,express resp.header
Browser ->> Network ->> Response Headers
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
只有这个:
response.getHeader(name)response.getHeader('content-type')
貌似没有获取所有Header
https://nodejs.org/docs/latest-v0.12.x/api/http.html#http_class_http_serverresponse
如果用框架就很简单了,express resp.header