feat(http): allow arbitrary number of response headers
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
parent
4427016094
commit
380605ea08
6 changed files with 52 additions and 20 deletions
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue