FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
uhttpsharp/uhttpsharp/HttpMethodProvider.cs at master · bonesoul/uhttpsharp · GitHub
bonesoul
/
uhttpsharp
Public
Notifications
You must be signed in to change notification settings
Fork
98
Star
178
Code
Issues
11
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
uhttpsharp
/
uhttpsharp
/
HttpMethodProvider.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
20 lines (16 loc) · 536 Bytes
Breadcrumbs
uhttpsharp
/
uhttpsharp
/
HttpMethodProvider.cs
Copy path
File metadata and controls
20 lines (16 loc) · 536 Bytes
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
using
System
;
namespace
uhttpsharp
{
public
class
HttpMethodProvider
:
IHttpMethodProvider
{
public
static
readonly
IHttpMethodProvider
Default
=
new
HttpMethodProviderCache
(
new
HttpMethodProvider
(
)
)
;
internal
HttpMethodProvider
(
)
{
}
public
HttpMethods
Provide
(
string
name
)
{
var
capitalName
=
name
.
Substring
(
0
,
1
)
.
ToUpper
(
)
+
name
.
Substring
(
1
)
.
ToLower
(
)
;
return
(
HttpMethods
)
Enum
.
Parse
(
typeof
(
HttpMethods
)
,
capitalName
)
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL