UNPKG

abi.js

Version:

[![typescript-icon]][typescript-link] [![license-icon]][license-link] [![status-icon]][status-link] [![ci-icon]][ci-link] [![twitter-icon]][twitter-link]

284 lines (283 loc) 4.79 kB
// src/method.ts var GET = "GET"; var HEAD = "HEAD"; var POST = "POST"; var PUT = "PUT"; var DELETE = "DELETE"; var ACL = "ACL"; var BASELINE_CONTROL = "BASELINE-CONTROL"; var BIND = "BIND"; var CHECKIN = "CHECKIN"; var CHECKOUT = "CHECKOUT"; var CONNECT = "CONNECT"; var COPY = "COPY"; var LABEL = "LABEL"; var LINK = "LINK"; var LOCK = "LOCK"; var MERGE = "MERGE"; var MKACTIVITY = "MKACTIVITY"; var MKCALENDAR = "MKCALENDAR"; var MKCOL = "MKCOL"; var MKREDIRECTREF = "MKREDIRECTREF"; var MKWORKSPACE = "MKWORKSPACE"; var MOVE = "MOVE"; var OPTIONS = "OPTIONS"; var ORDERPATCH = "ORDERPATCH"; var PATCH = "PATCH"; var PRI = "PRI"; var PROPFIND = "PROPFIND"; var PROPPATCH = "PROPPATCH"; var REBIND = "REBIND"; var REPORT = "REPORT"; var SEARCH = "SEARCH"; var TRACE = "TRACE"; var UNBIND = "UNBIND"; var UNCHECKOUT = "UNCHECKOUT"; var UNLINK = "UNLINK"; var UNLOCK = "UNLOCK"; var UPDATE = "UPDATE"; var UPDATEREDIRECTREF = "UPDATEREDIRECTREF"; var VERSION_CONTROL = "VERSION-CONTROL"; var METHODS = [ GET, HEAD, POST, PUT, DELETE, ACL, BASELINE_CONTROL, BIND, CHECKIN, CHECKOUT, CONNECT, COPY, LABEL, LINK, LOCK, MERGE, MKACTIVITY, MKCALENDAR, MKCOL, MKREDIRECTREF, MKWORKSPACE, MOVE, OPTIONS, ORDERPATCH, PATCH, PRI, PROPFIND, PROPPATCH, REBIND, REPORT, SEARCH, TRACE, UNBIND, UNCHECKOUT, UNLINK, UNLOCK, UPDATE, UPDATEREDIRECTREF, VERSION_CONTROL ]; function isMethod(method) { return method in METHODS; } function isGet(method) { return method === GET; } function isHead(method) { return method === HEAD; } function isPost(method) { return method === POST; } function isPut(method) { return method === PUT; } function isDelete(method) { return method === DELETE; } function isAcl(method) { return method === ACL; } function isBaselineControl(method) { return method === BASELINE_CONTROL; } function isBind(method) { return method === BIND; } function isCheckin(method) { return method === CHECKIN; } function isCheckout(method) { return method === CHECKOUT; } function isConnect(method) { return method === CONNECT; } function isCopy(method) { return method === COPY; } function isLabel(method) { return method === LABEL; } function isLink(method) { return method === LINK; } function isLock(method) { return method === LOCK; } function isMerge(method) { return method === MERGE; } function isMkactivity(method) { return method === MKACTIVITY; } function isMkcalendar(method) { return method === MKCALENDAR; } function isMkcol(method) { return method === MKCOL; } function isMkredirectref(method) { return method === MKREDIRECTREF; } function isMkworkspace(method) { return method === MKWORKSPACE; } function isMove(method) { return method === MOVE; } function isOptions(method) { return method === OPTIONS; } function isOrderpatch(method) { return method === ORDERPATCH; } function isPatch(method) { return method === PATCH; } function isPri(method) { return method === PRI; } function isPropfind(method) { return method === PROPFIND; } function isProppatch(method) { return method === PROPPATCH; } function isRebind(method) { return method === REBIND; } function isReport(method) { return method === REPORT; } function isSearch(method) { return method === SEARCH; } function isTrace(method) { return method === TRACE; } function isUnbind(method) { return method === UNBIND; } function isUncheckout(method) { return method === UNCHECKOUT; } function isUnlink(method) { return method === UNLINK; } function isUnlock(method) { return method === UNLOCK; } function isUpdate(method) { return method === UPDATE; } function isUpdateredirectref(method) { return method === UPDATEREDIRECTREF; } function isVersionControl(method) { return method === VERSION_CONTROL; } export { ACL, BASELINE_CONTROL, BIND, CHECKIN, CHECKOUT, CONNECT, COPY, DELETE, GET, HEAD, LABEL, LINK, LOCK, MERGE, METHODS, MKACTIVITY, MKCALENDAR, MKCOL, MKREDIRECTREF, MKWORKSPACE, MOVE, OPTIONS, ORDERPATCH, PATCH, POST, PRI, PROPFIND, PROPPATCH, PUT, REBIND, REPORT, SEARCH, TRACE, UNBIND, UNCHECKOUT, UNLINK, UNLOCK, UPDATE, UPDATEREDIRECTREF, VERSION_CONTROL, isAcl, isBaselineControl, isBind, isCheckin, isCheckout, isConnect, isCopy, isDelete, isGet, isHead, isLabel, isLink, isLock, isMerge, isMethod, isMkactivity, isMkcalendar, isMkcol, isMkredirectref, isMkworkspace, isMove, isOptions, isOrderpatch, isPatch, isPost, isPri, isPropfind, isProppatch, isPut, isRebind, isReport, isSearch, isTrace, isUnbind, isUncheckout, isUnlink, isUnlock, isUpdate, isUpdateredirectref, isVersionControl };