OpenVPN 3 Core Library
Loading...
Searching...
No Matches
method.hpp
Go to the documentation of this file.
1
// OpenVPN -- An application to securely tunnel IP networks
2
// over a single port, with support for SSL/TLS-based
3
// session authentication and key exchange,
4
// packet encryption, packet authentication, and
5
// packet compression.
6
//
7
// Copyright (C) 2012- OpenVPN Inc.
8
//
9
// SPDX-License-Identifier: MPL-2.0 OR AGPL-3.0-only WITH openvpn3-openssl-exception
10
//
11
12
#ifndef OPENVPN_HTTP_METHOD_H
13
#define OPENVPN_HTTP_METHOD_H
14
15
namespace
openvpn::HTTP::Method
{
16
enum
Type
17
{
18
OTHER
,
19
GET
,
20
POST
,
21
};
22
23
Type
parse
(
const
std::string &methstr)
24
{
25
if
(methstr ==
"GET"
)
26
return
GET
;
27
else
if
(methstr ==
"POST"
)
28
return
POST
;
29
else
30
return
OTHER
;
31
}
32
}
// namespace openvpn::HTTP::Method
33
34
#endif
openvpn::HTTP::Method
Definition
method.hpp:15
openvpn::HTTP::Method::parse
Type parse(const std::string &methstr)
Definition
method.hpp:23
openvpn::HTTP::Method::Type
Type
Definition
method.hpp:17
openvpn::HTTP::Method::OTHER
@ OTHER
Definition
method.hpp:18
openvpn::HTTP::Method::POST
@ POST
Definition
method.hpp:20
openvpn::HTTP::Method::GET
@ GET
Definition
method.hpp:19
openvpn
http
method.hpp
Generated by
1.9.8