-
Notifications
You must be signed in to change notification settings - Fork 0
/
Methods.hpp
54 lines (41 loc) · 898 Bytes
/
Methods.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#pragma once
#include <string>
namespace zia::http {
using Method = std::string;
/**
* OPTIONS Method, as defined in RFC 2616, 9.2
*/
static const Method Options = "OPTIONS";
/**
* GET Method, as defined in RFC 2616, 9.3
*/
static const Method Get = "GET";
/**
* HEAD Method, as defined in RFC 2616, 9.4
*/
static const Method Head = "HEAD";
/**
* POST Method, as defined in RFC 2616, 9.5
*/
static const Method Post = "POST";
/**
* PUT Method, as defined in RFC 2616, 9.6
*/
static const Method Put = "PUT";
/**
* DELETE Method, as defined in RFC 2616, 9.7
*/
static const Method Delete = "DELETE";
/**
* TRACE Method, as defined in RFC 2616, 9.8
*/
static const Method Trace = "TRACE";
/**
* CONNECT Method, as defined in RFC 2616, 9.9
*/
static const Method Connect = "CONNECT";
/**
* PATCH Method, as defined in RFC 5789
*/
static const Method Patch = "PATCH";
}