10 lines
306 B
C
10 lines
306 B
C
struct header_s {
|
|
char * str;
|
|
size_t size;
|
|
};
|
|
|
|
char *get_path(char *request);
|
|
struct header_s *gen_header(int status_code, size_t file_size, char *mime_type);
|
|
int send_response(int fd, char *req_path);
|
|
void handle_post_request(int fd, char *request);
|
|
void handle_get_request(int fd, char *request); |