class

Fetcher::URLValidator::Service

Inherits Reference < Object

Service wrapper for dependency injection. By default it delegates to the URLValidator module methods. Tests can pass a custom object that implements the same instance methods to CrestHttpClient for deterministic/mocked behavior.

Constructors

Instance methods

extract_domain(url : String) : String
Source
looks_like_ip?(host : String) : Bool
Source
register_ip(host : String, ip : Socket::IPAddress) : Nil
Source
resolve_and_validate(url : String) : Bool
Source
valid?(url : String | Nil) : Bool
Source
validate_connected_ip(host : String, connected_ip : Socket::IPAddress) : Bool
Source
validate_ip(host : String) : Bool
Source