sig/resolver/native.rbs in httpx-0.22.5 vs sig/resolver/native.rbs in httpx-0.23.0
- old
+ new
@@ -9,19 +9,22 @@
attr_reader family: ip_family
@options: Options
@ns_index: Integer
- @nameserver: Array[String]?
+ @nameserver: Array[String]
+ @socket_type: :udp | :tcp
@ndots: Integer
@start_timeout: Float?
@search: Array[String]
@_timeouts: Array[Numeric]
@timeouts: Hash[String, Array[Numeric]]
@connections: Array[Connection]
@read_buffer: String
@write_buffer: Buffer
+ @large_packet: Buffer?
+ @io: UDP | TCP
attr_reader state: Symbol
def call: () -> void
@@ -52,13 +55,15 @@
def resolve: (?Connection connection, ?String hostname) -> void
def generate_candidates: (String) -> Array[String]
- def build_socket: () -> void
+ def build_socket: () -> (UDP | TCP)
def transition: (Symbol nextstate) -> void
def handle_error: (NativeResolveError | StandardError) -> void
+
+ def reset_hostname: (String hostname, ?reset_candidates: bool) -> void
end
end
end
\ No newline at end of file