add support for passing in an external ustream_ssl context
[project/uclient.git] / uclient.h
index d328b14..11a1955 100644 (file)
--- a/uclient.h
+++ b/uclient.h
@@ -47,8 +47,13 @@ int uclient_write(struct uclient *cl, char *buf, int len);
 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);
+bool uclient_http_redirect(struct uclient *cl);
+
+int uclient_http_set_ssl_ctx(struct uclient *cl, struct ustream_ssl_ctx *ctx);
 
 #endif