Implement HTTP/2 and WebSocket support; remove legacy JavaScript and CSS files

- Added HTTP/2 support in src/http2.c and src/http2.h, including session management, frame handling, and response sending.
- Introduced WebSocket functionality in src/websocket.c and src/websocket.h, covering handshake, frame parsing, and message sending.
- Created a WebSocket test page (www/websocket-test.html) for client-side interaction.
- Removed outdated JavaScript (www/script.js) and CSS (www/style.css) files.
This commit is contained in:
2025-10-02 21:14:23 +00:00
parent 7028a0cb11
commit a2c4617493
15 changed files with 2062 additions and 174 deletions

View File

@@ -11,15 +11,15 @@ NC := \033[0m
CC = gcc
CFLAGS = -Wall -Wextra -O2 -D_GNU_SOURCE
LDFLAGS = -pthread
LIBS = -lssl -lcrypto -lmagic
LIBS = -lssl -lcrypto -lmagic -lnghttp2
# Source files and object files
SRCS = src/server.c src/config_parser.c src/server_config.c
SRCS = src/server.c src/config_parser.c src/server_config.c src/websocket.c src/http2.c
OBJS = $(SRCS:.c=.o)
TARGET = server
# Header files
HEADERS = src/server_config.h
HEADERS = src/server_config.h src/websocket.h
# Include directories
INCLUDES =