Skip to content
HttpRequestDeinit

HttpRequestDeinit

Description

Release storage owned by req and zero the struct. Safe to call on a partially-parsed request.

Usage example (Cross-references)

Usage examples (Cross-references)
        ok               = ok && host && ZstrCompare(host->value.data, "example.com") == 0;
    
        HttpRequestDeinit(&req);
        DefaultAllocatorDeinit(&alloc);
        return ok;
    }
    
    void HttpRequestDeinit(HttpRequest *req) {
        if (!req) {
            LOG_FATAL("invalid arguments");
                LOG_INFO("[{}] {} {}", client_addr, method, req.url);
            }
            HttpRequestDeinit(&req);
            StrDeinit(&raw);
        }
Last updated on