Method: Async::DNS::Transaction#append_question!

Defined in:
lib/async/dns/transaction.rb

#append_question!Object

A typical response to a DNS request includes both the question and response. This helper appends the question unless it looks like the user is already managing that aspect of the response.



194
195
196
197
198
# File 'lib/async/dns/transaction.rb', line 194

def append_question!
	if @response.question.size == 0
		@response.add_question(@question, @resource_class)
	end
end