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)
- In
Http.c:29:
ok = ok && host && ZstrCompare(host->value.data, "example.com") == 0;
HttpRequestDeinit(&req);
DefaultAllocatorDeinit(&alloc);
return ok;- In
Http.c:161:
}
void HttpRequestDeinit(HttpRequest *req) {
if (!req) {
LOG_FATAL("invalid arguments");- In
Beam.c:100:
LOG_INFO("[{}] {} {}", client_addr, method, req.url);
}
HttpRequestDeinit(&req);
StrDeinit(&raw);
}
Last updated on