MCPcopy Create free account
hub / github.com/BloombergGraphics/whatiscode / normalizeMethod

Function normalizeMethod

scripts/libs/fetch.js:198–201  ·  view source on GitHub ↗
(method)

Source from the content-addressed store, hash-verified

196 var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']
197
198 function normalizeMethod(method) {
199 var upcased = method.toUpperCase()
200 return (methods.indexOf(upcased) > -1) ? upcased : method
201 }
202
203 function Request(url, options) {
204 options = options || {}

Callers 1

RequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected