azure-core
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
Azure::Core::Http::HttpMethod Class Referencefinal

The method to be performed on the resource identified by the Request.

#include <http.hpp>

Public Member Functions

 HttpMethod (std::string value)
 Constructs HttpMethod from string.
 
bool operator== (const HttpMethod &other) const
 Compares two instances of HttpMethod for equality.
 
bool operator!= (const HttpMethod &other) const
 Compares two instances of HttpMethod for equality.
 
const std::string & ToString () const
 Returns the HttpMethod represented as a string.
 

Static Public Attributes

AZ_CORE_DLLEXPORT static const HttpMethod Get
 The representation of a GET HTTP method based on [RFC 7231] (https://datatracker.ietf.org/doc/html/rfc7231#section-4.3.1).
 
AZ_CORE_DLLEXPORT static const HttpMethod Head
 The representation of a HEAD HTTP method based on [RFC 7231] (https://datatracker.ietf.org/doc/html/rfc7231#section-4.3.2).
 
AZ_CORE_DLLEXPORT static const HttpMethod Post
 The representation of a POST HTTP method based on [RFC 7231] (https://datatracker.ietf.org/doc/html/rfc7231#section-4.3.3).
 
AZ_CORE_DLLEXPORT static const HttpMethod Put
 The representation of a PUT HTTP method based on [RFC 7231] (https://datatracker.ietf.org/doc/html/rfc7231#section-4.3.4).
 
AZ_CORE_DLLEXPORT static const HttpMethod Delete
 The representation of a DELETE HTTP method based on [RFC 7231] (https://datatracker.ietf.org/doc/html/rfc7231#section-4.3.5).
 
AZ_CORE_DLLEXPORT static const HttpMethod Patch
 The representation of a PATCH HTTP method based on [RFC 5789] (https://datatracker.ietf.org/doc/html/rfc5789).
 
AZ_CORE_DLLEXPORT static const HttpMethod Options
 The representation of an OPTIONS HTTP method based on [RFC 2616] (https://datatracker.ietf.org/doc/html/rfc2616).
 

Constructor & Destructor Documentation

◆ HttpMethod()

Azure::Core::Http::HttpMethod::HttpMethod ( std::string  value)
inlineexplicit
Note
Won't check if value is a known HttpMethod defined as per any RFC.
Parameters
valueA given string to represent the HttpMethod.

Member Function Documentation

◆ operator!=()

bool Azure::Core::Http::HttpMethod::operator!= ( const HttpMethod other) const
inline
Parameters
otherSome HttpMethod instance to compare with.
Returns
false if instances are equal; otherwise, true.

◆ operator==()

bool Azure::Core::Http::HttpMethod::operator== ( const HttpMethod other) const
inline
Parameters
otherSome HttpMethod instance to compare with.
Returns
true if instances are equal; otherwise, false.

The documentation for this class was generated from the following file: