41 lines
510 B
Ruby
41 lines
510 B
Ruby
# typed: true
|
|
class Scraper::HttpClientConfig
|
|
include HasColorLogger
|
|
|
|
def cookies
|
|
not_implemented!
|
|
end
|
|
|
|
def do_login(performer)
|
|
# nop
|
|
end
|
|
|
|
def map_uri(uri)
|
|
# nop
|
|
uri
|
|
end
|
|
|
|
def scrub_stored_uri(uri)
|
|
# nop
|
|
uri
|
|
end
|
|
|
|
def ratelimit
|
|
not_implemented!
|
|
end
|
|
|
|
def allowed_domains
|
|
not_implemented!
|
|
end
|
|
|
|
def redirect_limit
|
|
not_implemented!
|
|
end
|
|
|
|
private
|
|
|
|
def not_implemented!
|
|
raise NotImplementedError.new("implement in #{self.class.name}")
|
|
end
|
|
end
|