On 24 Jan 2022, at 16:53, Stefan Eissing <ste...@eissing.org> wrote: > Yes, it's 0 length like ERROR and has a struct as that holds: > - int status, opt 0 > - const char *reason, opt NULL > - apr_table_t *headers > - apr_table_t *notes > > on responses, shallow copied from the request_rec, etc. > > The nice thing is that the HTTP/1.x transcode out filter can > now check in one place that > - there is indeed a HEADERS before data buckets > - there is only one HEADERS with status >= 200 > > And "above" the transcode layer, a data bucket is content, period.
I have a module that parses multipart/mime headers and puts them into a metadata bucket, that has a lot of similarity to what you’re after: https://github.com/minfrin/mod_multipart/blob/main/mod_multipart.c#L514 Some of the functions above would be useful in httpd. Regards, Graham —