taskrambler
0.1.9
Web server and task management solution.
Main Page
Related Pages
Data Structures
Files
File List
Globals
worker.h
Go to the documentation of this file.
1
/**
2
* \file
3
* Worker for processing HTTP request, response cycles.
4
*
5
* \author Georg Hopp
6
*
7
* \copyright
8
* Copyright © 2012 Georg Hopp
9
*
10
* This program is free software: you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation, either version 3 of the License, or
13
* (at your option) any later version.
14
*
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
19
*
20
* You should have received a copy of the GNU General Public License
21
* along with this program. If not, see <http://www.gnu.org/licenses/>.
22
*/
23
24
#ifndef __HTTP_WORKER_H__
25
#define __HTTP_WORKER_H__
26
27
#include <sys/types.h>
28
#include <time.h>
29
30
#include "class.h"
31
#include "hash.h"
32
#include "
http/parser.h
"
33
#include "
http/writer.h
"
34
#include "
cbuf.h
"
35
#include "
session.h
"
36
37
#include "
http/request.h
"
38
#include "
http/response.h
"
39
#include "
queue.h
"
40
#include "
commons.h
"
41
42
43
CLASS
(HttpWorker) {
44
char
* id;
45
46
Cbuf pbuf;
47
Hash
asset_pool
;
48
49
void
* application_adapter;
50
51
HttpRequest current_request;
52
HttpMessage current_response;
53
54
Queue additional_headers;
55
56
HttpParser parser;
57
HttpWriter writer;
58
};
59
60
#endif // __HTTP_WORKER_H__
61
62
// vim: set ts=4 sw=4:
commons.h
session.h
response.h
parser.h
queue.h
writer.h
asset_pool
Hash asset_pool
Definition:
pool.c:32
CLASS
CLASS(HttpWorker)
Definition:
worker.h:43
cbuf.h
request.h
include
http
worker.h
Generated on Wed Apr 13 2016 23:19:32 for taskrambler by
1.8.10