Skip to content
HttpHeaderDeinit

HttpHeaderDeinit

Description

User-facing deinit. Releases the backing storage owned by header->key and header->value, then zeros the struct.

Usage example (Cross-references)

Usage examples (Cross-references)
    // ---------------------------------------------------------------------------
    
    void HttpHeaderDeinit(HttpHeader *header) {
        if (!header) {
            LOG_FATAL("invalid arguments");
            if (cursor == line_start) {
                LOG_ERROR("failed to parse header line");
                HttpHeaderDeinit(&hh);
                return in;
            }
    
            if (!VecPushBackR(&req->headers, hh)) {
                HttpHeaderDeinit(&hh);
                LOG_ERROR("failed to push header");
                return in;
Last updated on