Skip to content
HttpRequestInit

HttpRequestInit

Description

Initialize an empty HttpRequest. Inside a Scope the allocator argument may be omitted (uses MisraScope).

Inner calls use the numbered overloads (StrInit_1, VecInitWithDeepCopy_3) directly so the outer MISRA_OVERLOAD blue-paint rule doesn’t suppress the inner dispatch.

Usage example (Cross-references)

Usage examples (Cross-references)
            "body-bytes";
    
        HttpRequest req  = HttpRequestInit(alloc_base);
        const char *next = HttpRequestParse(&req, raw);
            StrPushBackZstr(&raw, prefix_bytes);
    
            HttpRequest req = HttpRequestInit(scope);
            const char *end = HttpRequestParse(&req, raw.data);
            if (end == raw.data) {
Last updated on