UNPKG

negotiate

Version:

A JavaScript implementation of proper HTTP content negotiation.

15 lines (14 loc) 287 B
{ "type" : "object", "properties" : { "method" : { "type" : "string", "enum" : ["GET", "HEAD", "POST", "PUT", "DELETE", "TRACE", "CONNECT", "OPTIONS"], "optional" : true }, "headers" : { "type" : "object", "additionalProperties" : { "type" : "string" } } } }