feat(lnm): better routing detection
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Jef Roosens 2023-12-04 21:46:10 +01:00
parent 8ec667af3b
commit ad243ea9f5
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
4 changed files with 23 additions and 19 deletions

View file

@ -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;

View file

@ -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