PHP 7.4.33
Preview: index.js Size: 1.02 KB
/var/www/ai-gemini.bitkit.dk/httpdocs/node_modules/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-rw-r-- 2016-01-18 02:40:45
Edit Download
1.02 KB lrw-rw-r-- 2016-01-18 01:02:16
Edit Download
1.15 KB lrw-rw-r-- 2016-01-18 01:02:27
Edit Download
2.03 KB lrw-rw-r-- 2024-06-20 05:50:21
Edit Download
1.65 KB lrw-rw-r-- 2016-01-18 01:17:30
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).