MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / normalizeMethod

Function normalizeMethod

libraries/p5.js:7805–7808  ·  view source on GitHub ↗
(method)

Source from the content-addressed store, hash-verified

7803 var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']
7804
7805 function normalizeMethod(method) {
7806 var upcased = method.toUpperCase()
7807 return (methods.indexOf(upcased) > -1) ? upcased : method
7808 }
7809
7810 function Request(input, options) {
7811 options = options || {}

Callers 1

RequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected