You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
'use strict';
|
|
|
|
require('../common');
|
|
|
|
const assert = require('assert');
|
|
|
|
const http = require('http');
|
|
|
|
|
|
|
|
// This test ensures all http methods from HTTP parser are exposed
|
|
|
|
// to http library
|
|
|
|
|
|
|
|
const methods = [
|
|
|
|
'DELETE',
|
|
|
|
'GET',
|
|
|
|
'HEAD',
|
|
|
|
'POST',
|
|
|
|
'PUT',
|
|
|
|
'CONNECT',
|
|
|
|
'OPTIONS',
|
|
|
|
'TRACE',
|
|
|
|
'COPY',
|
|
|
|
'LOCK',
|
|
|
|
'MKCOL',
|
|
|
|
'MOVE',
|
|
|
|
'PROPFIND',
|
|
|
|
'PROPPATCH',
|
|
|
|
'SEARCH',
|
|
|
|
'UNLOCK',
|
|
|
|
'BIND',
|
|
|
|
'REBIND',
|
|
|
|
'UNBIND',
|
|
|
|
'ACL',
|
|
|
|
'REPORT',
|
|
|
|
'MKACTIVITY',
|
|
|
|
'CHECKOUT',
|
|
|
|
'MERGE',
|
|
|
|
'M-SEARCH',
|
|
|
|
'NOTIFY',
|
|
|
|
'SUBSCRIBE',
|
|
|
|
'UNSUBSCRIBE',
|
|
|
|
'PATCH',
|
|
|
|
'PURGE',
|
|
|
|
'MKCALENDAR',
|
|
|
|
'LINK',
|
|
|
|
'UNLINK'
|
|
|
|
];
|
|
|
|
|
|
|
|
assert.deepStrictEqual(http.METHODS, methods.sort());
|