tewi/Server/tw_http.h
Nishi ddcd7e3817 can parse http now
git-svn-id: file:///raid/svn-personal/tewi/trunk@16 8739d7e6-ffea-ec47-b151-bdff447c6205
2024-09-13 15:09:52 +00:00

26 lines
354 B
C

/* $Id$ */
#ifndef __TW_HTTP_H__
#define __TW_HTTP_H__
struct tw_http_request {
char* method;
char* path;
char* version;
char** headers;
char* body;
};
struct tw_http_response {
char** headers;
};
struct tw_http_tool {};
#ifdef SOURCE
#include <openssl/ssl.h>
int tw_http_parse(SSL* ssl, int sock, struct tw_http_request* req);
#endif
#endif