source: Main/trunk/Server/tw_http.h@ 16

Last change on this file since 16 was 16, checked in by Nishi, on Sep 14, 2024 at 12:09:52 AM

can parse http now

  • Property svn:keywords set to Id
File size: 354 bytes
Line 
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
6struct tw_http_request {
7 char* method;
8 char* path;
9 char* version;
10 char** headers;
11 char* body;
12};
13
14struct tw_http_response {
15 char** headers;
16};
17
18struct tw_http_tool {};
19
20#ifdef SOURCE
21#include <openssl/ssl.h>
22int 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.