DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
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
9namespace 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
28
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
64
65 private:
66 String m_sMethod;
67 };
68 }
69 }
70 }
71}
Defines common cross-platform macros, export decorators, and fundamental types.
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition Common.h:20
Base object class for DotNetDupe mirroring .NET System.Object.
High-performance UTF-8 / UTF-16 string manipulation class mirroring .NET System.String.
static const HttpMethod Head
Represents an HTTP HEAD protocol method.
Definition HttpMethod.h:57
static const HttpMethod Get
Represents an HTTP GET protocol method.
Definition HttpMethod.h:49
bool operator!=(const HttpMethod &other) const
Inequality operator for HttpMethod instances.
bool Equals(const HttpMethod &other) const
Determines whether the specified HttpMethod is equal to the current HttpMethod (case-insensitive).
static const HttpMethod Trace
Represents an HTTP TRACE protocol method.
Definition HttpMethod.h:61
static const HttpMethod Put
Represents an HTTP PUT protocol method.
Definition HttpMethod.h:53
String ToString() const
Returns a string that represents the current HttpMethod object.
HttpMethod(const String &method)
Initializes a new instance of the HttpMethod class with a specific HTTP method name.
static const HttpMethod Post
Represents an HTTP POST protocol method.
Definition HttpMethod.h:51
static const HttpMethod Delete
Represents an HTTP DELETE protocol method.
Definition HttpMethod.h:55
String GetMethod() const
Gets the HTTP method verb as a string.
bool operator==(const HttpMethod &other) const
Equality operator for HttpMethod instances.
static const HttpMethod Options
Represents an HTTP OPTIONS protocol method.
Definition HttpMethod.h:59
static const HttpMethod Patch
Represents an HTTP PATCH protocol method.
Definition HttpMethod.h:63
Supports all classes in the DotNetDupe class hierarchy.
Definition Object.h:18
Represents text as a sequence of UTF-8 code units with culture-invariant operations.
Definition String.h:74