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
|
case code
|
||||||
when :ok
|
when :ok
|
||||||
parse_addresses(result, request)
|
parse_addresses(result)
|
||||||
when :no_domain_found
|
when :no_domain_found
|
||||||
# Indicates no such domain was found.
|
# Indicates no such domain was found.
|
||||||
|
|
||||||
@ -146,13 +146,13 @@ module HTTPX
|
|||||||
|
|
||||||
emit_resolve_error(connection)
|
emit_resolve_error(connection)
|
||||||
when :decode_error
|
when :decode_error
|
||||||
host = @requests.delete(request)
|
host, connection = @queries.first
|
||||||
connection = reset_hostname(host)
|
reset_hostname(host)
|
||||||
emit_resolve_error(connection, connection.origin.host, result)
|
emit_resolve_error(connection, connection.origin.host, result)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def parse_addresses(answers, request)
|
def parse_addresses(answers)
|
||||||
if answers.empty?
|
if answers.empty?
|
||||||
# no address found, eliminate candidates
|
# no address found, eliminate candidates
|
||||||
host = @requests.delete(request)
|
host = @requests.delete(request)
|
||||||
|
@ -32,8 +32,6 @@ module HTTPX
|
|||||||
|
|
||||||
def parse: (Request request, Response response) -> void
|
def parse: (Request request, Response response) -> void
|
||||||
|
|
||||||
def parse_addresses: (Array[dns_result] answers, Request request) -> void
|
|
||||||
|
|
||||||
def build_request: (String hostname) -> Request
|
def build_request: (String hostname) -> Request
|
||||||
|
|
||||||
def decode_response_body: (Response) -> dns_decoding_response
|
def decode_response_body: (Response) -> dns_decoding_response
|
||||||
|
Loading…
x
Reference in New Issue
Block a user