Fetcher::RequestConfig
Constructors
new(timeout : TimeoutConfig = TimeoutConfig.new, retry : RetryConfig = RetryConfig.new, circuit_breaker : CircuitBreakerConfig = CircuitBreakerConfig.new, rate_limit : RateLimitConfig = RateLimitConfig.new, streaming : StreamingConfig = StreamingConfig.new, cache_config : CacheConfig = CacheConfig.new, dns : DnsConfig = DnsConfig.new, content : ContentConfig = ContentConfig.new, redirect : RedirectConfig = RedirectConfig.new, max_redirects : Int32 = 5, follow_redirects : Bool = true, ssl_verify : Bool = true, driver_detection_mode : DriverDetectionMode = DriverDetectionMode::Auto, error_detail_level : ErrorDetailLevel = ErrorDetailLevel::Normal, max_concurrent_requests : Int32 | Nil = nil, ssl_verify_bypass_acknowledged : Bool = false, gitlab_token : String | Nil = nil, codeberg_token : String | Nil = nil, reddit_client_id : String | Nil = nil, reddit_client_secret : String | Nil = nil, reddit_username : String | Nil = nil, reddit_password : String | Nil = nil)
SourceInstance methods
cache
Sourcecache_config
Sourcecircuit_breaker
Sourceclose
Close resources held by this config, including the Cache owner fiber. Call this when the config is no longer needed to prevent fiber leaks.
codeberg_token
Sourcecontent
Sourcedns
Sourcedriver_detection_mode
Sourceerror_detail_level
Sourcefollow_redirects?
Sourcegitlab_token
Sourcemax_concurrent_requests
Sourcemax_redirects
Sourcerate_limit
Sourcereddit_client_id
Sourcereddit_client_secret
Sourcereddit_password
Sourcereddit_username
Sourceredirect
Sourceretry
Sourcessl_verify?
Sourcessl_verify_bypass_acknowledged
Sourcestreaming
Sourcetimeout
SourceReturn a copy of this RequestConfig with specific allowed domains for redirects.