DotNetDupe
4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Toggle main menu visibility
Loading...
Searching...
No Matches
HttpMethod.h
Go to the documentation of this file.
1
3
4
#pragma once
5
#include "
Common.h
"
6
#include "
System/Object.h
"
7
#include "
System/String.h
"
8
9
namespace
DotNetDupe
{
10
namespace
System
{
11
namespace
Net
{
12
namespace
Http
{
13
19
class
HttpMethod
:
public
Object
{
20
public
:
23
DOTNETDUPE_API
explicit
HttpMethod
(
const
String
& method);
24
27
DOTNETDUPE_API
String
GetMethod
()
const
;
28
31
DOTNETDUPE_API
String
ToString
()
const
;
32
36
DOTNETDUPE_API
bool
Equals
(
const
HttpMethod
& other)
const
;
37
41
DOTNETDUPE_API
bool
operator==
(
const
HttpMethod
& other)
const
;
42
46
DOTNETDUPE_API
bool
operator!=
(
const
HttpMethod
& other)
const
;
47
49
DOTNETDUPE_API
static
const
HttpMethod
Get
;
51
DOTNETDUPE_API
static
const
HttpMethod
Post
;
53
DOTNETDUPE_API
static
const
HttpMethod
Put
;
55
DOTNETDUPE_API
static
const
HttpMethod
Delete
;
57
DOTNETDUPE_API
static
const
HttpMethod
Head
;
59
DOTNETDUPE_API
static
const
HttpMethod
Options
;
61
DOTNETDUPE_API
static
const
HttpMethod
Trace
;
63
DOTNETDUPE_API
static
const
HttpMethod
Patch
;
64
65
private
:
66
String
m_sMethod;
67
};
68
}
69
}
70
}
71
}
Common.h
Defines common cross-platform macros, export decorators, and fundamental types.
DOTNETDUPE_API
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition
Common.h:20
Object.h
Base object class for DotNetDupe mirroring .NET System.Object.
String.h
High-performance UTF-8 / UTF-16 string manipulation class mirroring .NET System.String.
DotNetDupe::System::Net::Http::HttpMethod::Head
static const HttpMethod Head
Represents an HTTP HEAD protocol method.
Definition
HttpMethod.h:57
DotNetDupe::System::Net::Http::HttpMethod::Get
static const HttpMethod Get
Represents an HTTP GET protocol method.
Definition
HttpMethod.h:49
DotNetDupe::System::Net::Http::HttpMethod::operator!=
bool operator!=(const HttpMethod &other) const
Inequality operator for HttpMethod instances.
Definition
HttpMethod.cpp:43
DotNetDupe::System::Net::Http::HttpMethod::Equals
bool Equals(const HttpMethod &other) const
Determines whether the specified HttpMethod is equal to the current HttpMethod (case-insensitive).
Definition
HttpMethod.cpp:33
DotNetDupe::System::Net::Http::HttpMethod::Trace
static const HttpMethod Trace
Represents an HTTP TRACE protocol method.
Definition
HttpMethod.h:61
DotNetDupe::System::Net::Http::HttpMethod::Put
static const HttpMethod Put
Represents an HTTP PUT protocol method.
Definition
HttpMethod.h:53
DotNetDupe::System::Net::Http::HttpMethod::ToString
String ToString() const
Returns a string that represents the current HttpMethod object.
Definition
HttpMethod.cpp:28
DotNetDupe::System::Net::Http::HttpMethod::HttpMethod
HttpMethod(const String &method)
Initializes a new instance of the HttpMethod class with a specific HTTP method name.
Definition
HttpMethod.cpp:19
DotNetDupe::System::Net::Http::HttpMethod::Post
static const HttpMethod Post
Represents an HTTP POST protocol method.
Definition
HttpMethod.h:51
DotNetDupe::System::Net::Http::HttpMethod::Delete
static const HttpMethod Delete
Represents an HTTP DELETE protocol method.
Definition
HttpMethod.h:55
DotNetDupe::System::Net::Http::HttpMethod::GetMethod
String GetMethod() const
Gets the HTTP method verb as a string.
Definition
HttpMethod.cpp:23
DotNetDupe::System::Net::Http::HttpMethod::operator==
bool operator==(const HttpMethod &other) const
Equality operator for HttpMethod instances.
Definition
HttpMethod.cpp:38
DotNetDupe::System::Net::Http::HttpMethod::Options
static const HttpMethod Options
Represents an HTTP OPTIONS protocol method.
Definition
HttpMethod.h:59
DotNetDupe::System::Net::Http::HttpMethod::Patch
static const HttpMethod Patch
Represents an HTTP PATCH protocol method.
Definition
HttpMethod.h:63
DotNetDupe::System::Object
Supports all classes in the DotNetDupe class hierarchy.
Definition
Object.h:18
DotNetDupe::System::String
Represents text as a sequence of UTF-8 code units with culture-invariant operations.
Definition
String.h:74
DotNetDupe::System::Net::Http
Definition
FileDownloader.h:22
DotNetDupe::System::Net
Definition
Dns.h:13
DotNetDupe::System
Definition
Action.h:11
DotNetDupe
Definition
IServiceCollection.h:7
Include
System
Net
Http
HttpMethod.h
Generated by
1.18.0