Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http中增加一个 http 添加 静态文件目录 ? #48

Open
eurake opened this issue Jan 24, 2024 · 1 comment
Open

http中增加一个 http 添加 静态文件目录 ? #48

eurake opened this issue Jan 24, 2024 · 1 comment

Comments

@eurake
Copy link

eurake commented Jan 24, 2024

参数 cpp-http https://github.com/yhirose/cpp-httplib/blob/449801990fd6629ba2a51f7a82383306d707d53e/httplib.h#L5708C2-L5708C4

@wlgq2
Copy link
Owner

wlgq2 commented Jan 29, 2024

可以考虑,但是同步读文件会阻塞io线程,降低并发性能。我先实现一个同步版,后面优化成异步版,支持多线程加载。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants