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…