feat(lander): implement redirect posting using lnm

This commit is contained in:
Jef Roosens 2023-12-05 19:12:19 +01:00
parent ad243ea9f5
commit f3da5c78ef
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
10 changed files with 123 additions and 81 deletions

View file

@ -128,4 +128,6 @@ typedef struct lnm_http_loop_ctx {
void *c;
} lnm_http_loop_ctx;
lnm_http_step_err lnm_http_loop_step_body_to_buf(lnm_http_conn *conn);
#endif

View file

@ -35,8 +35,10 @@ typedef struct lnm_http_req {
} headers;
struct {
uint64_t expected_len;
uint64_t len;
char *buf;
bool owned;
} body;
uint64_t content_length;
} lnm_http_req;
typedef enum lnm_http_parse_err {