Subversion Repositories Tewi

Rev

Rev 16 | Rev 20 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
16 nishi 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