Webserv
|
#include <Client.hpp>
Public Member Functions | |
Client (int fd, ip_port_t ip_port, Master *parent) | |
~Client (void) | |
bool | getRequest (Env *env, string paquet) |
void | handleRequest (void) |
Private Member Functions | |
void | init (void) |
bool | getBody (string paquet) |
bool | parseHeader (Env *env) |
string | header_pick (string key, size_t id) |
bool | check_method (void) |
void | create_file (string path) |
void | cgi (string cgi_path, string path) |
void | send_redir (int redir_code, string opt) |
void | send_error (int error_code) |
void | send_answer (string msg) |
void | debug_header (void) |
Private Attributes | |
int | _fd |
ip_port_t | _ip_port |
Master * | _parent |
Server * | _server |
Env * | _env |
Route * | _route |
string | _method |
string | _uri |
string | _query |
string | _host |
string | _header |
string | _body |
int | _len |
bool | _last_chunk |
std::map< string, vec_string > | _request |
Friends | |
class | Master |
Definition at line 4 of file Client.hpp.
Client::~Client | ( | void | ) |
Definition at line 23 of file Client.cpp.
|
private |
Definition at line 178 of file Client.cpp.
|
private |
|
private |
Definition at line 167 of file Client.cpp.
|
private |
|
private |
Definition at line 58 of file Client.cpp.
bool Client::getRequest | ( | Env * | env, |
string | paquet | ||
) |
void Client::handleRequest | ( | void | ) |
|
private |
|
private |
|
private |
Definition at line 79 of file Client.cpp.
|
private |
Definition at line 236 of file Client.cpp.
|
private |
Definition at line 219 of file Client.cpp.
|
private |
|
friend |
Definition at line 37 of file Client.hpp.
|
private |
Definition at line 11 of file Client.hpp.
|
private |
Definition at line 9 of file Client.hpp.
|
private |
Definition at line 5 of file Client.hpp.
|
private |
Definition at line 11 of file Client.hpp.
|
private |
Definition at line 11 of file Client.hpp.
|
private |
Definition at line 6 of file Client.hpp.
|
private |
Definition at line 13 of file Client.hpp.
|
private |
Definition at line 12 of file Client.hpp.
|
private |
Definition at line 11 of file Client.hpp.
|
private |
Definition at line 7 of file Client.hpp.
|
private |
Definition at line 11 of file Client.hpp.
|
private |
Definition at line 14 of file Client.hpp.
|
private |
Definition at line 10 of file Client.hpp.
|
private |
Definition at line 8 of file Client.hpp.
|
private |
Definition at line 11 of file Client.hpp.