struct

Krikri::PluginHelpers::HTTPDownload::Options

Inherits Struct < Value < Object

Constructors

new(max_redirects : Int32 = DEFAULT_MAX_REDIRECTS, connect_timeout : Time::Span = DEFAULT_TIMEOUT, read_timeout : Time::Span = DEFAULT_TIMEOUT, headers : HTTP::Headers = HTTP::Headers.new, verify_tls : Bool = true, username : String | Nil = nil, password : String | Nil = nil, force_basic_auth : Bool = true, client_cert : String | Nil = nil, client_key : String | Nil = nil, ciphers : String | Nil = nil, unredirected_headers : Array(String) = [] of String, http_proxy : String | Nil = nil, https_proxy : String | Nil = nil, no_proxy : String | Nil = nil)
Source

Instance methods

ciphers
client_cert
client_key
clone
Source
connect_timeout
copy_with(max_redirects _max_redirects = @max_redirects, connect_timeout _connect_timeout = @connect_timeout, read_timeout _read_timeout = @read_timeout, headers _headers = @headers, verify_tls _verify_tls = @verify_tls, username _username = @username, password _password = @password, force_basic_auth _force_basic_auth = @force_basic_auth, client_cert _client_cert = @client_cert, client_key _client_key = @client_key, ciphers _ciphers = @ciphers, unredirected_headers _unredirected_headers = @unredirected_headers, http_proxy _http_proxy = @http_proxy, https_proxy _https_proxy = @https_proxy, no_proxy _no_proxy = @no_proxy)
Source
force_basic_auth

Basic auth timing, mirroring Ansible's fetch_url: true sends the Authorization header on the FIRST request; false (real get_url/uri's default) holds it back until a 401 challenge, then retries once WITH the header. The default here is true only to preserve the pre-existing behavior of the helper's original consumers; get_url passes the real param's default (false) through.

headers
http_proxy

Real fetch_url downloads through urllib's default ProxyHandler, which routes each request through the http_proxy/https_proxy env vars (no_proxy bypass included) of the module process - the very env Ansible populates from the task's environment: keyword. The caller picks the values out of its own env sources (task overlay over ENV) since this helper never sees the task environment; empty means "no proxy for that scheme", exactly like getproxies_environment treats an unset var.

https_proxy
max_redirects
no_proxy
password
read_timeout
unredirected_headers
username
verify_tls