webserv/www/examples/test.txt
2025-10-01 18:03:00 +02:00

40 lines
887 B
Plaintext

This is a simple text file for testing WebServ's static file serving capabilities.
WebServ Features Demonstrated:
==============================
✓ Static file serving
✓ Proper MIME type detection
✓ HTTP/1.1 compliance
✓ Keep-alive connections
✓ Efficient file reading
✓ Custom headers
✓ Caching support
Server Information:
==================
Server: WebServ/1.0
Build: C++20 with epoll
Performance: High-throughput, low-latency
This file can be used to test:
- Basic HTTP GET requests
- File serving performance
- MIME type handling (text/plain)
- Response headers
- Connection handling
Example request:
curl -v http://localhost:8080/examples/test.txt
Expected response:
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: [file size]
Last-Modified: [modification date]
Cache-Control: public, max-age=3600
[This file content]
Test completed successfully! 🎉