X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-hreq.h;h=3d7954a9d64acbf1c8988beca846cd3620523ac9;hb=15c3a8b1ef47127d30d8b5f26f9d7622a0b72656;hp=8e12b62d54351501a0a1726db7ff8712de72282a;hpb=ece754d98ecf9f5b81f5a6e002ee7ea2289a75bb;p=src%2Fapp-framework-binder.git diff --git a/src/afb-hreq.h b/src/afb-hreq.h index 8e12b62d..3d7954a9 100644 --- a/src/afb-hreq.h +++ b/src/afb-hreq.h @@ -21,6 +21,9 @@ struct AFB_clientCtx; struct json_object; struct hreq_data; struct afb_hsrv; +struct afb_req_itf; + +extern const struct afb_req_itf afb_hreq_req_itf; struct afb_hreq { /* @@ -38,6 +41,7 @@ struct afb_hreq { int suspended; int replied; const char *version; + const char *lang; const char *url; size_t lenurl; const char *tail; @@ -58,7 +62,9 @@ extern int afb_hreq_reply_file_if_exist(struct afb_hreq *request, int dirfd, con extern int afb_hreq_reply_file(struct afb_hreq *request, int dirfd, const char *filename); -extern int afb_hreq_redirect_to(struct afb_hreq *request, const char *url); +extern void afb_hreq_redirect_to(struct afb_hreq *request, const char *url, int add_query_part); + +extern int afb_hreq_redirect_to_ending_slash_if_needed(struct afb_hreq *hreq); extern const char *afb_hreq_get_cookie(struct afb_hreq *hreq, const char *name);