PeanutButter
Loading...
Searching...
No Matches
PeanutButter.SimpleHTTPServer.HttpMethodsExtensions Class Reference

Provides extension methods for HttpMethods enum values. More...

Static Public Member Functions

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.

Detailed Description

Provides extension methods for HttpMethods enum values.

Member Function Documentation

◆ 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
methodMethod to act upon
otherMethodMethod 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
methodMethod to act upon
otherMethodMethod 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