mcpp index

compat.httplib

#include

C++ 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
*

特性

特性声明了
zlibdefines, deps
no-exceptionsdefines
tlsdefines, deps
zstddefines, deps
brotlidefines, deps

源文件 (1)

  • mcpp_generated/compat_httplib_anchor.cpp

生成的文件

  • mcpp_generated/compat_httplib_anchor.cpp

版本

版本平台 镜像sha256
0.53.1 最新 LinuxWindowsmacOS 源站 185af9587e27…