- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhttp.h
More file actions
Latest commit
22 lines (17 loc) · 439 Bytes
/
Copy pathhttp.h
File metadata and controls
22 lines (17 loc) · 439 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndefHTTP_H
#defineHTTP_H
//parse request line
//parse header
//percent decode
//read chunked encoding
//see zlib.h for adding gzip + deflate support
//Accept-Encoding: ...
//Content-Encoding: ...
//support for GET and HEAD is required by standard
typedefenum { GET, POST, HEAD, UNKNOWN } http_method_t;
//typedef struct {
// const char *key;
// const char *value;
//} http_header_t;
voidhandle_http_connection(intcon);
#endif