azure-core
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. More...
 
bool operator== (const HttpMethod &other) const
 Compares two instances of HttpMethod for equality. More...
 
bool operator!= (const HttpMethod &other) const
 Compares two instances of HttpMethod for equality. More...
 
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.
 
AZ_CORE_DLLEXPORT static const HttpMethod Head
 The representation of a HEAD HTTP method based on RFC 7231.
 
AZ_CORE_DLLEXPORT static const HttpMethod Post
 The representation of a POST HTTP method based on RFC 7231.
 
AZ_CORE_DLLEXPORT static const HttpMethod Put
 The representation of a PUT HTTP method based on RFC 7231.
 
AZ_CORE_DLLEXPORT static const HttpMethod Delete
 The representation of a DELETE HTTP method based on RFC 7231.
 
AZ_CORE_DLLEXPORT static const HttpMethod Patch
 The representation of a PATCH HTTP method based on RFC 5789.
 

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 files: