PHP 8.2.30
Preview: index.js Size: 1.02 KB
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/methods/index.js

/*!
 * methods
 * Copyright(c) 2013-2014 TJ Holowaychuk
 * Copyright(c) 2015-2016 Douglas Christopher Wilson
 * MIT Licensed
 */

'use strict';

/**
 * Module dependencies.
 * @private
 */

var http = require('http');

/**
 * Module exports.
 * @public
 */

module.exports = getCurrentNodeMethods() || getBasicNodeMethods();

/**
 * Get the current Node.js methods.
 * @private
 */

function getCurrentNodeMethods() {
  return http.METHODS && http.METHODS.map(function lowerCaseMethod(method) {
    return method.toLowerCase();
  });
}

/**
 * Get the "basic" Node.js methods, a snapshot from Node.js 0.10.
 * @private
 */

function getBasicNodeMethods() {
  return [
    'get',
    'post',
    'put',
    'head',
    'delete',
    'options',
    'trace',
    'copy',
    'lock',
    'mkcol',
    'move',
    'purge',
    'propfind',
    'proppatch',
    'unlock',
    'report',
    'mkactivity',
    'checkout',
    'merge',
    'm-search',
    'notify',
    'subscribe',
    'unsubscribe',
    'patch',
    'search',
    'connect'
  ];
}

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
427 B lrw-r--r-- 2026-02-03 15:30:46
Edit Download
1.02 KB lrw-r--r-- 2026-02-03 15:30:46
Edit Download
1.15 KB lrw-r--r-- 2026-02-03 15:30:46
Edit Download
947 B lrw-r--r-- 2026-02-03 15:30:44
Edit Download
1.65 KB lrw-r--r-- 2026-02-03 15:30:46
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).