winnie-http/src/server.h

9 lines
273 B
C
Raw Normal View History

2024-05-16 15:54:17 +07:00
#define PORT 8080
#define BUFFER_SIZE 1024
const char SERVER_VERSION[] = "winnie-http-server/0.0.1";
const char BAD_REQUEST_RESP[] = "HTTP/1.1 400 Bad Request\r\n";
const char NOT_FOUND_RESP[] = "HTTP/1.1 404 Not Found\r\n";
const char OK_RESP[] = "HTTP/1.1 200 OK\r\n";