mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-07-18 00:00:50 -04:00
Compare commits
No commits in common. "52e738b5865c19d03dd5c2dfd7b06b84a46038a3" and "ed7c56f12c5ee6c08575cb75b99c46cf2ab005f4" have entirely different histories.
52e738b586
...
ed7c56f12c
@ -132,7 +132,7 @@ module HTTPX
|
||||
|
||||
case code
|
||||
when :ok
|
||||
parse_addresses(result, request)
|
||||
parse_addresses(result)
|
||||
when :no_domain_found
|
||||
# Indicates no such domain was found.
|
||||
|
||||
@ -146,13 +146,13 @@ module HTTPX
|
||||
|
||||
emit_resolve_error(connection)
|
||||
when :decode_error
|
||||
host = @requests.delete(request)
|
||||
connection = reset_hostname(host)
|
||||
host, connection = @queries.first
|
||||
reset_hostname(host)
|
||||
emit_resolve_error(connection, connection.origin.host, result)
|
||||
end
|
||||
end
|
||||
|
||||
def parse_addresses(answers, request)
|
||||
def parse_addresses(answers)
|
||||
if answers.empty?
|
||||
# no address found, eliminate candidates
|
||||
host = @requests.delete(request)
|
||||
|
@ -32,8 +32,6 @@ module HTTPX
|
||||
|
||||
def parse: (Request request, Response response) -> void
|
||||
|
||||
def parse_addresses: (Array[dns_result] answers, Request request) -> void
|
||||
|
||||
def build_request: (String hostname) -> Request
|
||||
|
||||
def decode_response_body: (Response) -> dns_decoding_response
|
||||
|
Loading…
x
Reference in New Issue
Block a user