ゴミ箱
verb.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 //
4 // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 //
7 // Official repository: https://github.com/boostorg/beast
8 //
9 
10 #ifndef BOOST_BEAST_HTTP_VERB_HPP
11 #define BOOST_BEAST_HTTP_VERB_HPP
12 
13 #include <boost/beast/config.hpp>
15 #include <iosfwd>
16 
17 namespace boost {
18 namespace beast {
19 namespace http {
20 
26 enum class verb
27 {
34  unknown = 0,
35 
37  delete_,
38 
43  get,
44 
50  head,
51 
59  post,
60 
67  put,
68 
74  connect,
75 
81  options,
82 
85  trace,
86 
87  // WebDAV
88 
89  copy,
90  lock,
91  mkcol,
92  move,
93  propfind,
94  proppatch,
95  search,
96  unlock,
97  bind,
98  rebind,
99  unbind,
100  acl,
101 
102  // subversion
103 
104  report,
105  mkactivity,
106  checkout,
107  merge,
108 
109  // upnp
110 
111  msearch,
112  notify,
113  subscribe,
114  unsubscribe,
115 
116  // RFC-5789
117 
118  patch,
119  purge,
120 
121  // CalDAV
122 
123  mkcalendar,
124 
125  // RFC-2068, section 19.6.1.2
126 
127  link,
128  unlink
129 };
130 
136 verb
138 
141 to_string(verb v);
142 
144 inline
147 {
148  return os << to_string(v);
149 }
150 
151 } // http
152 } // beast
153 } // boost
154 
156 
157 #endif
std::ostream & operator<<(std::ostream &os, message< isRequest, basic_file_body< File >, Fields > const &msg)=delete
Definition: async_result.hpp:20
detail::ostream_helper< DynamicBuffer, char, std::char_traits< char >, detail::basic_streambuf_movable::value > ostream(DynamicBuffer &buffer)
Definition: ostream.hpp:91
The DELETE method deletes the specified resource.
verb
Definition: verb.hpp:26
Definition: beast_common.hpp:6
verb string_to_verb(string_view s)
Definition: verb.ipp:328
string_view to_string(field f)
Definition: field.ipp:545
boost::string_ref string_view
The type of string view used by the library.
Definition: string.hpp:36