// Smoke test for BodySizeLimitInterceptor — confirms the header compiles // in a consumer translation unit and the constructor surface matches the // documented API. Behavioural tests against real IncomingRequest objects // would need a full oatpp request fixture; pinning the API surface here is // enough to catch the kinds of breakage this header is at risk of. #include "oatpp-authkit/interceptor/BodySizeLimitInterceptor.hpp" #include #include int main() { using oatpp_authkit::BodySizeLimitInterceptor; // Default: fail-closed. auto strict = std::make_shared(1024); (void)strict; // Opt-out: legacy fail-open behaviour. auto lax = std::make_shared(1024, /*requireContentLength=*/false); (void)lax; std::printf("BodySizeLimitInterceptor API ok\n"); return 0; }