#ifndef SRC_HTTPHEADERS_HPP_
#define SRC_HTTPHEADERS_HPP_
#include
// Arduino declares it's own min max, incompatible with the stl...
#undef min
#undef max
#include
#include "HTTPSServerConstants.hpp"
#include "HTTPHeader.hpp"
namespace httpsserver {
/**
* \brief Groups and manages a set of HTTPHeader instances
*/
class HTTPHeaders {
public:
HTTPHeaders();
virtual ~HTTPHeaders();
HTTPHeader * get(std::string const &name);
std::string getValue(std::string const &name);
void set(HTTPHeader * header);
std::vector * getAll();
void clearAll();
private:
std::vector * _headers;
};
} /* namespace httpsserver */
#endif /* SRC_HTTPHEADERS_HPP_ */