Fixed the crash/Keep Alive issue, I think
[theodwalha.git] / theodwalha / reply.hpp
blobe9aa534f860da7cb01e65cd2426a5c6408a00a57
1 #pragma once
3 #include <ail/types.hpp>
4 #include <theodwalha/request.hpp>
6 struct http_reply
8 http_protocol::type protocol;
9 uword code;
10 std::string description;
12 bool gzip;
13 bool keep_alive;
14 uword keep_alive_timeout;
15 uword keep_alive_max;
16 std::string content_type;
18 std::string content;
20 http_reply();
22 void ok();
23 void not_found();
24 void forbidden();
26 bool get_packet(std::string & packet);