basic/bearer proxy authentication

This commit is contained in:
sjorsdonkers
2025-06-24 16:37:11 +02:00
parent c97a32e24b
commit 4560f31010
3 changed files with 95 additions and 3 deletions

View File

@@ -31,6 +31,7 @@ pub const App = struct {
tls_verify_host: bool = true,
http_proxy: ?std.Uri = null,
proxy_type: ?http.ProxyType = null,
proxy_auth: ?http.ProxyAuth = null,
};
pub fn init(allocator: Allocator, config: Config) !*App {
@@ -58,6 +59,7 @@ pub const App = struct {
.max_concurrent = 3,
.http_proxy = config.http_proxy,
.proxy_type = config.proxy_type,
.proxy_auth = config.proxy_auth,
.tls_verify_host = config.tls_verify_host,
}),
.config = config,