summaryrefslogtreecommitdiff
path: root/uclient.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-03-23 00:29:18 +0100
committerFelix Fietkau <nbd@openwrt.org>2014-03-23 00:29:18 +0100
commitf619ebe9d3343867bc8a8d5e98e6b81e645129e5 (patch)
tree77fe1f4050a813c9d3fa26a0afbae8ab411dd0e5 /uclient.h
parent0e5604d1d1abf7b6fd82d95da31c7718925e11fc (diff)
downloaduclient-f619ebe9d3343867bc8a8d5e98e6b81e645129e5.tar.gz
add a utility function to detect redirects and handle them
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'uclient.h')
-rw-r--r--uclient.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/uclient.h b/uclient.h
index f4009e0..e3d168a 100644
--- a/uclient.h
+++ b/uclient.h
@@ -52,5 +52,6 @@ extern const struct uclient_backend uclient_backend_http;
int uclient_http_set_header(struct uclient *cl, const char *name, const char *value);
int uclient_http_reset_headers(struct uclient *cl, const char *name, const char *value);
int uclient_http_set_request_type(struct uclient *cl, const char *type);
+bool uclient_http_redirect(struct uclient *cl);
#endif