0
点赞
收藏
分享

微信扫一扫

npm - type-is推断content-type


typeis(req, ['json']) // => 'json'
typeis(req, ['html', 'json']) // => 'json'
typeis(req, ['application/*']) // => 'application/json'
typeis(req, ['application/json']) // => 'application/json'

typeis(req, ['html']) // => false


举报

相关推荐

0 条评论