feat(lnm): better routing detection
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
8ec667af3b
commit
ad243ea9f5
4 changed files with 23 additions and 19 deletions
|
|
@ -33,6 +33,9 @@ typedef struct lnm_http_req {
|
|||
struct phr_header arr[LNM_HTTP_MAX_REQ_HEADERS];
|
||||
size_t len;
|
||||
} headers;
|
||||
struct {
|
||||
uint64_t expected_len;
|
||||
} body;
|
||||
uint64_t content_length;
|
||||
} lnm_http_req;
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@
|
|||
#include "lnm/common.h"
|
||||
#include "lnm/http/consts.h"
|
||||
|
||||
typedef lnm_err (*data_fn)(size_t *written, char *buf, lnm_http_conn *conn,
|
||||
size_t offset, size_t len);
|
||||
typedef lnm_err (*data_fn)(uint64_t *written, char *buf, lnm_http_conn *conn,
|
||||
uint64_t offset, uint64_t len);
|
||||
|
||||
/**
|
||||
* Linked list elements used to store the response headers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue