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)
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)
Source
force_basic_auth

Basic auth timing, mirroring real 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
max_redirects
password
read_timeout
unredirected_headers
username
verify_tls