福福福福福福福福福

关注

npm - type-is推断content-type

福福福福福福福福福

关注

阅读 66

2022-10-17


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

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


相关推荐

大雁f

HTTP Content-Type

大雁f 22 0 0

彪悍的鼹鼠

http的Content-type

彪悍的鼹鼠 61 0 0

黎轩的闲暇时光

常见 content-type对应表

黎轩的闲暇时光 67 0 0

GG_lyf

二、HTTP Content-Type详解

GG_lyf 106 0 0

脱下愤怒的小裤衩

关于content-type的理解

脱下愤怒的小裤衩 27 0 0

奋斗De奶爸

Content-type的几种常见类型

奋斗De奶爸 102 0 0

快乐码农Alan007

http 协议中的content-type

快乐码农Alan007 49 0 0

分湖芝蘭

http的 content-type都有哪些?

分湖芝蘭 51 0 0

青乌

post 请求 content-type的区别

青乌 100 0 0

夏木之下

HTTP 请求中的Content-Type

夏木之下 43 0 0

精彩评论(0)

0 0 举报