mirror of
https://github.com/opus-tango/http-server-in-c.git
synced 2026-03-20 03:55:25 +00:00
move http structs to new file and write struct handler functions
This commit is contained in:
@@ -5,23 +5,6 @@
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
struct http_request {
|
||||
char* method;
|
||||
char* url;
|
||||
char** headers;
|
||||
int num_headers;
|
||||
char* body;
|
||||
size_t body_length;
|
||||
};
|
||||
|
||||
struct http_response {
|
||||
char* status_line;
|
||||
char** headers;
|
||||
int num_headers;
|
||||
char* body;
|
||||
size_t body_length;
|
||||
};
|
||||
|
||||
typedef struct http_request http_request;
|
||||
typedef struct http_response http_response;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user