Http keep alive

This commit is contained in:
2020-12-11 23:03:54 +01:00
parent e116b940b2
commit f7fc4fa801
6 changed files with 89 additions and 13 deletions

View File

@ -8,4 +8,14 @@
#ifndef NECRONDA_SERVER_HTTP_H
#define NECRONDA_SERVER_HTTP_H
typedef struct {
char method[8];
char *uri;
char version[3];
char field_num;
char *fields[64][2];
} http_req;
int http_receive_request(sock *client, http_req *req);
#endif //NECRONDA_SERVER_HTTP_H