mirror of https://github.com/fafhrd91/actix-web
Add all the IANA described HTTP methods
This commit is contained in:
parent
6627109984
commit
37495225c9
|
@ -42,15 +42,44 @@ macro_rules! method_type {
|
||||||
}
|
}
|
||||||
|
|
||||||
method_type! {
|
method_type! {
|
||||||
Get, GET, get,
|
Acl, ACL, acl,
|
||||||
Post, POST, post,
|
BaseLineControl, BASELINE_CONTROL, baseline_control,
|
||||||
Put, PUT, put,
|
Bind, BIND, bind,
|
||||||
Delete, DELETE, delete,
|
CheckIn, CHECKIN, checkin,
|
||||||
Head, HEAD, head,
|
CheckOut, CHECKOUT, checkout,
|
||||||
Connect, CONNECT, connect,
|
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,
|
Options, OPTIONS, options,
|
||||||
Trace, TRACE, trace,
|
OrderPatch, ORDERPATCH, orderpatch,
|
||||||
Patch, PATCH, patch,
|
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 {
|
impl ToTokens for MethodType {
|
||||||
|
|
Loading…
Reference in New Issue