tewi/Server/tw_http.h
Nishi c1809aa935 can show index
git-svn-id: file:///raid/svn-personal/tewi/trunk@20 8739d7e6-ffea-ec47-b151-bdff447c6205
2024-09-14 09:59:15 +00:00

29 lines
421 B
C

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