class TCPSocket

Overview

Override of the TCPSocket and HTTP::Client classes in order to allow an IP family to be selected for domains that resolve to both IPv4 and IPv6 addresses.

Defined in:

invidious/helpers/crystal_class_overrides.cr

Constructors

Constructor Detail

def self.new(host : String, port, dns_timeout = nil, connect_timeout = nil, family = Socket::Family::UNSPEC) #

[View source]