winnie-http/src/server.h

9 lines
289 B
C
Raw Normal View History

2024-05-16 15:54:17 +07:00
#define PORT 8080
#define BUFFER_SIZE 1024
2024-05-17 23:12:56 +07:00
static const char SERVER_VERSION[] = "winnie-http-server/0.0.1";
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";