Provides extension methods for HttpMethods enum values.
More...
|
static bool | Matches (this HttpMethods method, HttpMethods otherMethod) |
| Determines whether the HttpMethod being acted on matches the provided method.
|
static bool | Matches (this HttpMethods method, string otherMethod) |
| Determines whether the HttpMethod being acted on matches the provided method.
|
Provides extension methods for HttpMethods enum values.
◆ Matches() [1/2]
bool PeanutButter.SimpleHTTPServer.HttpMethodsExtensions.Matches |
( |
this HttpMethods | method, |
|
|
HttpMethods | otherMethod ) |
|
static |
Determines whether the HttpMethod being acted on matches the provided method.
- Parameters
-
method | Method to act upon |
otherMethod | Method to test against |
- Returns
- True if the methods are an exact match or otherMethod is Any
◆ Matches() [2/2]
bool PeanutButter.SimpleHTTPServer.HttpMethodsExtensions.Matches |
( |
this HttpMethods | method, |
|
|
string | otherMethod ) |
|
static |
Determines whether the HttpMethod being acted on matches the provided method.
- Parameters
-
method | Method to act upon |
otherMethod | Method to test against |
- Returns
- True if the methods are an exact match or otherMethod is Any
The documentation for this class was generated from the following file:
- source/SimpleServers/PeanutButter.SimpleHTTPServer/HttpMethodsExtensions.cs