Method
mach::Method
Description
Section titled “Description”Represents an HTTP request method.
Headers
Section titled “Headers”Primary header:
#include <mach/http/Method.hpp>Convenience header:
#include <mach/mach.hpp>Syntax
Section titled “Syntax”enum class Method { Get, Post, Put, Patch, Delete, Head, Options, Unknown};Enumerators
Section titled “Enumerators”| Name | Description |
|---|---|
Get |
The HTTP GET method. |
Post |
The HTTP POST method. |
Put |
The HTTP PUT method. |
Delete |
The HTTP DELETE method. |
Patch |
The HTTP PATCH method. |
Head |
The HTTP HEAD method. |
Options |
The HTTP OPTIONS method. Currently not supported by Mach. |
Unknown |
An unknown or unsupported HTTP method. |
Related Functions
Section titled “Related Functions”| Function | Description |
|---|---|
toString |
Converts a Method to its string representation. |
Related Constants
Section titled “Related Constants”| Name | Description |
|---|---|
allMethods |
Contains all HTTP methods supported by Mach. |
Remarks
Section titled “Remarks”The Options enumerator is defined for completeness, but Mach does not currently support HTTP OPTIONS requests.
See Also
Section titled “See Also”| Name | Description |
|---|---|
Request |
Represents the current HTTP request. |