feat(http): allow arbitrary number of response headers
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Jef Roosens 2023-11-20 22:25:01 +01:00
parent 4427016094
commit 380605ea08
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
6 changed files with 52 additions and 20 deletions

View file

@ -24,8 +24,11 @@ typedef struct http_response {
size_t head_len;
size_t head_written;
http_body body;
http_response_header headers[4];
size_t header_count;
struct {
http_response_header *arr;
size_t len;
size_t cap;
} headers;
} http_response;
/**