jshttp / accepts

Higher-level content negotiation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docs

jonathanong opened this issue · comments

  • accept.types() supports type-is-type types. accept.types('json', 'html', 'text/*', 'image/*', 'video/*')
  • only execute accept[property]() once so content negotiation can do its job. don't do multiple accept[property]()s

@Fishrock123 , my man :) As they say, dox rox.

I'll check it when I have more time.

haha, no problem :) I would add them, but if not for the same reason :D