http: add support for relative location on redirect
[project/uclient.git] / uclient-backend.h
index 9ccc7999dbf7a0e3251db9d0a1be9ca90890f779..c2b9fd538189e2c4a96240bb7bae159031abd3eb 100644 (file)
@@ -25,6 +25,7 @@ struct uclient_backend {
 
        struct uclient *(*alloc)(void);
        void (*free)(struct uclient *cl);
+       void (*update_proxy_url)(struct uclient *cl);
        void (*update_url)(struct uclient *cl);
 
        int (*connect)(struct uclient *cl);
@@ -39,5 +40,6 @@ void uclient_backend_set_error(struct uclient *cl, int code);
 void uclient_backend_set_eof(struct uclient *cl);
 void uclient_backend_reset_state(struct uclient *cl);
 struct uclient_url *uclient_get_url(const char *url_str, const char *auth_str);
+struct uclient_url *uclient_get_url_location(struct uclient_url *url, const char *location);
 
 #endif