basic HTTP GET response
This commit is contained in:
@@ -24,6 +24,10 @@
|
||||
# include "Client.hpp"
|
||||
# include "Server.hpp"
|
||||
# include <csignal> // signal
|
||||
# include <cstdlib> // itoa
|
||||
# include <fstream> // ifstream
|
||||
char *ft_itoa(int n);
|
||||
# include <unistd.h> // access
|
||||
|
||||
# define BUFSIZE 8192
|
||||
# define TIMEOUT 3000
|
||||
@@ -67,8 +71,16 @@ class Webserv
|
||||
std::vector<Client> _clients;
|
||||
|
||||
void _accept_connection(int fd);
|
||||
|
||||
void _request(Client *client);
|
||||
void _read_request(Client *client);
|
||||
|
||||
void _response(Client *client);
|
||||
void _send_response(Client *client);
|
||||
void _construct_response(Client *client);
|
||||
void _insert_status_line(Client *client);
|
||||
void _get_ressource(Client *client);
|
||||
|
||||
|
||||
int _epoll_update(int fd, uint32_t events, int op);
|
||||
int _epoll_update(int fd, uint32_t events, int op, void *ptr);
|
||||
|
||||
Reference in New Issue
Block a user