From 29faa3451db99e74b907bf882bf123affad5d132 Mon Sep 17 00:00:00 2001 From: Mariia Ibragimova Date: Tue, 26 Mar 2024 18:55:58 +0200 Subject: [PATCH] CDM-648 Add options proxy_connect_timeout and proxy_read_timeout --- gcore/options.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gcore/options.go b/gcore/options.go index cf6fb71..a6aa38a 100644 --- a/gcore/options.go +++ b/gcore/options.go @@ -24,6 +24,8 @@ type Options struct { IPAddressACL *IPAddressACL `json:"ip_address_acl"` LimitBandwidth *LimitBandwidth `json:"limit_bandwidth"` ProxyCacheMethodsSet *ProxyCacheMethodsSet `json:"proxy_cache_methods_set"` + ProxyConnectTimeout *ProxyConnectTimeout `json:"proxy_connect_timeout"` + ProxyReadTimeout *ProxyReadTimeout `json:"proxy_read_timeout"` QueryParamsBlacklist *QueryParamsBlacklist `json:"query_params_blacklist"` QueryParamsWhitelist *QueryParamsWhitelist `json:"query_params_whitelist"` RedirectHttpsToHttp *RedirectHttpsToHttp `json:"redirect_https_to_http"` @@ -174,6 +176,16 @@ type ProxyCacheMethodsSet struct { Value bool `json:"value"` } +type ProxyConnectTimeout struct { + Enabled bool `json:"enabled"` + Value string `json:"value"` +} + +type ProxyReadTimeout struct { + Enabled bool `json:"enabled"` + Value string `json:"value"` +} + type QueryParamsBlacklist struct { Enabled bool `json:"enabled"` Value []string `json:"value"`