SaltAPI
1.1
An API for the HTTPd / Zia by Salty Studio.
Main Page
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Header.hpp
Go to the documentation of this file.
1
//
2
// Created by wery_a on 07/01/17.
3
//
4
5
#ifndef API_V2_HEADER_HPP
6
#define API_V2_HEADER_HPP
7
8
#include <string>
9
#include <map>
10
11
namespace
HTTP {
12
class
Header
{
13
public
:
14
Header
();
15
virtual
~Header
();
16
private
:
17
std::map<std::string, std::string> m_headers;
18
19
public
:
20
std::string
const
&
Get
(std::string
const
&key)
const
;
21
22
void
Set
(std::string
const
&key, std::string
const
&value);
23
24
void
Add
(std::string
const
&key, std::string
const
&value);
25
26
void
Del
(std::string
const
&key);
27
28
};
29
}
30
31
#endif //API_V2_HEADER_HPP
HTTP::Header::Get
std::string const & Get(std::string const &key) const
Definition:
Header.cpp:16
HTTP::Header::Header
Header()
Definition:
Header.cpp:8
HTTP::Header::Set
void Set(std::string const &key, std::string const &value)
Definition:
Header.cpp:21
HTTP::Header::~Header
virtual ~Header()
Definition:
Header.cpp:12
HTTP::Header
Definition:
Header.hpp:12
HTTP::Header::Add
void Add(std::string const &key, std::string const &value)
Definition:
Header.cpp:28
HTTP::Header::Del
void Del(std::string const &key)
Definition:
Header.cpp:35
API
include
HTTP
Header.hpp
Generated on Tue Jan 10 2017 17:44:53 for SaltAPI by
1.8.6