MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / normalizeMethod

Function normalizeMethod

packages/core/fetch/index.mjs:320–323  ·  view source on GitHub ↗
(method)

Source from the content-addressed store, hash-verified

318 var methods = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
319
320 function normalizeMethod(method) {
321 var upcased = method.toUpperCase();
322 return methods.indexOf(upcased) > -1 ? upcased : method;
323 }
324
325 function Request(input, options) {
326 options = options || {};

Callers 1

RequestFunction · 0.85

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected