mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-04 00:00:37 -04:00
51 lines
1.1 KiB
Plaintext
51 lines
1.1 KiB
Plaintext
module HTTPX
|
|
module Resolver
|
|
class HTTPS
|
|
include ResolverMixin
|
|
include _ToIO
|
|
|
|
@options: Options
|
|
@resolver_options: Hash[Symbol, untyped]
|
|
@_record_types: Hash[String, Hash["A" | "AAAA", dns_resource]]
|
|
@queries: Hash[String, Connection]
|
|
@requests: Hash[Request, Connection]
|
|
@connections: Array[Connection]
|
|
@uri: URI::HTTPS
|
|
@uri_addresses: Array[String]?
|
|
|
|
def <<: (Connection) -> void
|
|
|
|
def timeout: () -> Numeric?
|
|
|
|
def closed?: () -> bool
|
|
|
|
def empty?: () -> bool
|
|
|
|
def close: () -> void
|
|
|
|
def call: () -> void
|
|
|
|
def interests: () -> io_interests?
|
|
|
|
private
|
|
|
|
def initialize: (options) -> untyped
|
|
|
|
def pool: () -> Pool
|
|
|
|
def resolver_connection: () -> Connection
|
|
|
|
def resolve: (Connection, String hostname) -> void
|
|
| (Connection) -> void
|
|
| () -> void
|
|
|
|
def on_response: (Request, response) -> void
|
|
|
|
def response: (Response) -> void
|
|
|
|
def build_request: (String hostname, "A" | "AAAA") -> Request
|
|
|
|
def decode_response_body: (Response) -> Array[dns_result]
|
|
end
|
|
end
|
|
end |