2024-05-16 15:54:17 +07:00
|
|
|
#define PORT 8080
|
|
|
|
#define BUFFER_SIZE 1024
|
|
|
|
|
2024-05-22 20:58:28 +07:00
|
|
|
static const char SERVER_VERSION[] = "winnie-http-server";
|
2024-05-16 15:54:17 +07:00
|
|
|
|
2024-05-17 23:12:56 +07:00
|
|
|
static const char BAD_REQUEST_HEAD[] = "HTTP/1.1 400 Bad Request";
|
|
|
|
static const char NOT_FOUND_HEAD[] = "HTTP/1.1 404 Not Found";
|
|
|
|
static const char OK_HEAD[] = "HTTP/1.1 200 OK";
|