Add all the IANA described HTTP methods

This commit is contained in:
Alexandre Bouthinon 2023-01-11 23:56:41 +01:00
parent 6627109984
commit 37495225c9
1 changed files with 35 additions and 6 deletions

View File

@ -42,15 +42,44 @@ macro_rules! method_type {
}
method_type! {
Get, GET, get,
Post, POST, post,
Put, PUT, put,
Delete, DELETE, delete,
Head, HEAD, head,
Acl, ACL, acl,
BaseLineControl, BASELINE_CONTROL, baseline_control,
Bind, BIND, bind,
CheckIn, CHECKIN, checkin,
CheckOut, CHECKOUT, checkout,
Connect, CONNECT, connect,
Copy, COPY, copy,
Delete, DELETE, delete,
Get, GET, get,
Head, HEAD, head,
Label, LABEL, label,
Link, LINK, link,
Lock, LOCK, lock,
Merge, MERGE, merge,
MkActivity, MKACTIVITY, mkactivity,
MkCalendar, MKCALENDAR, mkcalendar,
MkCol, MKCOL, mkcol,
MkRedirectRef, MKREDIRECTREF, mkredirectref,
MkWorkspace, MKWORKSPACE, mkworkspace,
Notify, NOTIFY, notify,
Options, OPTIONS, options,
Trace, TRACE, trace,
OrderPatch, ORDERPATCH, orderpatch,
Patch, PATCH, patch,
Post, POST, post,
Pri, PRI, pri,
PropFind, PROPFIND, propfind,
PropPatch, PROPPATCH, proppatch,
Put, PUT, put,
Rebind, REBIND, rebind,
Report, REPORT, report,
Search, SEARCH, search,
Trace, TRACE, trace,
Unbind, UNBIND, unbind,
Unlink, UNLINK, unlink,
Unlock, UNLOCK, unlock,
Update, UPDATE, update,
UpdateRedirectRef, UPDATEREDIRECTREF, updateredirectref,
VersionControl, VERSIONCONTROL, versioncontrol,
}
impl ToTokens for MethodType {