the struct is still opaque, it is only used for pointer tests
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
const char *auth;
};
-extern const struct uclient_backend uclient_backend_http;
void uclient_backend_set_eof(struct uclient *cl);
void uclient_backend_reset_state(struct uclient *cl);
return len;
}
-const struct uclient_backend uclient_backend_http __hidden = {
+const struct uclient_backend uclient_backend_http = {
.prefix = uclient_http_prefix,
.alloc = uclient_http_alloc,
int uclient_request(struct uclient *cl);
/* HTTP */
+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);