source:
Main/trunk/Server/tw_http.h@
18
Last change on this file since 18 was 17, checked in by , on Sep 14, 2024 at 2:41:07 AM | |
---|---|
|
|
File size: 329 bytes |
Rev | Line | |
---|---|---|
[16] | 1 | /* $Id: tw_http.h 17 2024-09-13 17:41:07Z nishi $ */ |
2 | ||
3 | #ifndef __TW_HTTP_H__ | |
4 | #define __TW_HTTP_H__ | |
5 | ||
6 | struct tw_http_request { | |
7 | char* method; | |
8 | char* path; | |
9 | char* version; | |
10 | char** headers; | |
11 | char* body; | |
12 | }; | |
13 | ||
14 | struct tw_http_response { | |
15 | char** headers; | |
16 | }; | |
17 | ||
18 | #ifdef SOURCE | |
19 | #include <openssl/ssl.h> | |
20 | int tw_http_parse(SSL* ssl, int sock, struct tw_http_request* req); | |
21 | #endif | |
22 | ||
23 | #endif |
Note:
See TracBrowser
for help on using the repository browser.