FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ServiceStack.Text/src/ServiceStack.Text/HttpMethods.cs at master · ServiceStack/ServiceStack.Text · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Dec 24, 2022. It is now read-only.
ServiceStack
/
ServiceStack.Text
Public archive
Notifications
You must be signed in to change notification settings
Fork
612
Star
1.2k
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
ServiceStack.Text
/
src
/
ServiceStack.Text
/
HttpMethods.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
32 lines (27 loc) · 1.41 KB
Breadcrumbs
ServiceStack.Text
/
src
/
ServiceStack.Text
/
HttpMethods.cs
Copy path
File metadata and controls
32 lines (27 loc) · 1.41 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using
System
.
Collections
.
Generic
;
namespace
ServiceStack
;
public
static
class
HttpMethods
{
static
readonly
string
[
]
allVerbs
=
{
"OPTIONS"
,
"GET"
,
"HEAD"
,
"POST"
,
"PUT"
,
"DELETE"
,
"TRACE"
,
"CONNECT"
,
// RFC 2616
"PROPFIND"
,
"PROPPATCH"
,
"MKCOL"
,
"COPY"
,
"MOVE"
,
"LOCK"
,
"UNLOCK"
,
// RFC 2518
"VERSION-CONTROL"
,
"REPORT"
,
"CHECKOUT"
,
"CHECKIN"
,
"UNCHECKOUT"
,
"MKWORKSPACE"
,
"UPDATE"
,
"LABEL"
,
"MERGE"
,
"BASELINE-CONTROL"
,
"MKACTIVITY"
,
// RFC 3253
"ORDERPATCH"
,
// RFC 3648
"ACL"
,
// RFC 3744
"PATCH"
,
// https://datatracker.ietf.org/doc/draft-dusseault-http-patch/
"SEARCH"
,
// https://datatracker.ietf.org/doc/draft-reschke-webdav-search/
"BCOPY"
,
"BDELETE"
,
"BMOVE"
,
"BPROPFIND"
,
"BPROPPATCH"
,
"NOTIFY"
,
"POLL"
,
"SUBSCRIBE"
,
"UNSUBSCRIBE"
//MS Exchange WebDav: http://msdn.microsoft.com/en-us/library/aa142917.aspx
}
;
public
static
HashSet
<
string
>
AllVerbs
=
new
(
allVerbs
)
;
public
static
bool
Exists
(
string
httpMethod
)
=>
AllVerbs
.
Contains
(
httpMethod
.
ToUpper
(
)
)
;
public
static
bool
HasVerb
(
string
httpVerb
)
=>
Exists
(
httpVerb
)
;
public
const
string
Get
=
"GET"
;
public
const
string
Put
=
"PUT"
;
public
const
string
Post
=
"POST"
;
public
const
string
Delete
=
"DELETE"
;
public
const
string
Options
=
"OPTIONS"
;
public
const
string
Head
=
"HEAD"
;
public
const
string
Patch
=
"PATCH"
;
}
Back
|
FazBrowse Home
|
New Git URL