Rev | Line | |
---|
[16] | 1 | /* $Id: tw_http.h 16 2024-09-13 15:09:52Z 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 | struct tw_http_tool {};
|
---|
| 19 |
|
---|
| 20 | #ifdef SOURCE
|
---|
| 21 | #include <openssl/ssl.h>
|
---|
| 22 | int tw_http_parse(SSL* ssl, int sock, struct tw_http_request* req);
|
---|
| 23 | #endif
|
---|
| 24 |
|
---|
| 25 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.