repo.or.cz
/
theodwalha.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fixed the crash/Keep Alive issue, I think
[theodwalha.git]
/
theodwalha
/
reply.hpp
blob
e9aa534f860da7cb01e65cd2426a5c6408a00a57
1
#pragma once
2
3
#include <ail/types.hpp>
4
#include <theodwalha/request.hpp>
5
6
struct
http_reply
7
{
8
http_protocol
::
type protocol
;
9
uword code
;
10
std
::
string description
;
11
12
bool
gzip
;
13
bool
keep_alive
;
14
uword keep_alive_timeout
;
15
uword keep_alive_max
;
16
std
::
string content_type
;
17
18
std
::
string content
;
19
20
http_reply
();
21
22
void
ok
();
23
void
not_found
();
24
void
forbidden
();
25
26
bool
get_packet
(
std
::
string
&
packet
);
27
};