Skip to content

Commit

Permalink
CDM-648 Add options proxy_connect_timeout and proxy_read_timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
MarianaStrix committed Mar 27, 2024
1 parent 3a3d3e8 commit 29faa34
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions gcore/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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"`
Expand Down

0 comments on commit 29faa34

Please sign in to comment.