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

@ -42,21 +42,19 @@ void lander_ctx_free(lander_ctx *ctx);
lnm_http_step_err lander_get_index(lnm_http_conn *conn);
bool lander_get_entry(event_loop_conn *conn);
lnm_http_step_err lander_get_entry(lnm_http_conn *conn);
bool lander_post_redirect(event_loop_conn *conn);
lnm_http_step_err lander_post_redirect(lnm_http_conn *conn);
bool lander_post_paste(event_loop_conn *conn);
bool lander_post_paste(event_loop_conn *conn);
bool lander_post_redirect(event_loop_conn *conn);
bool lander_stream_body_to_entry(event_loop_conn *conn);
bool lander_stream_body_to_client(event_loop_conn *conn);
bool lander_post_redirect_body_to_attr(event_loop_conn *conn);
lnm_http_step_err lander_post_redirect_body_to_attr(lnm_http_conn *conn);
bool lander_remove_entry(event_loop_conn *conn);
@ -71,7 +69,7 @@ void lander_header_to_attr(http_loop_ctx *ctx, const char *header,
/**
* Store the attribute's value as the provided header, if present.
*/
void lander_attr_to_header(http_loop_ctx *ctx, lander_attr_type attr_type,
http_header header_type);
void lander_attr_to_header(lnm_http_loop_ctx *ctx, lander_attr_type attr_type,
lnm_http_header header_type);
#endif