UNPKG

abi.js

Version:

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

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