compat.httplib
#includeC++ single-header HTTP/HTTPS server and client library
#include "../../../fixtures/httplib_compression_case.hpp"
mcpp add compat.httplib@0.53.1
用法
来自本仓库自己的测试项目 —— CI 真的编译并运行过,不是为了网站写的。
#ifndef CPPHTTPLIB_BROTLI_SUPPORT
#error "compat.httplib[brotli] must define CPPHTTPLIB_BROTLI_SUPPORT in consumers"
#endif
#define MCPP_HTTPLIB_FEATURE_NAME "brotli"
#define MCPP_HTTPLIB_ENCODING "br"
#include "../../../fixtures/httplib_compression_case.hpp"
tests/examples/httplib-brotli/tests/brotli.cpp · 项目 tests/examples/httplib-brotli
构建
- targets
httplib (lib)- language
c++23- import std
- no
- include dirs
*
特性
| 特性 | 声明了 |
|---|---|
| zlib | defines, deps |
| no-exceptions | defines |
| tls | defines, deps |
| zstd | defines, deps |
| brotli | defines, deps |
源文件 (1)
mcpp_generated/compat_httplib_anchor.cpp
生成的文件
mcpp_generated/compat_httplib_anchor.cpp
版本
| 版本 | 平台 | 镜像 | sha256 |
|---|---|---|---|
0.53.1 最新 |
LinuxWindowsmacOS | 源站 | 185af9587e27… |