Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HttpServer

GitHub license Language Platform PRs Welcome

一个用 C++17 实现的轻量级 HTTP/1.1 静态文件服务器

目前只支持单线程,WinGW,不支持跨平台,后面有时间更新。

编译运行

# 编译
g++ -std=c++17 -o server.exe main.cpp -lws2_32

# 运行
server.exe

# 或者带端口号(默认8080)
server.exe 80

About

A lightweight HTTP/1.1 static file server written in C++17. Supports GET requests, MIME type detection, logging, and custom ports.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages