Build a new AsyncHttpClient from #build_client_config( options ) Caller should close this client when done with it.
# File lib/rjack-async-httpclient.rb, line 85 def build_client( options ) AsyncHttpClient.new( build_client_config( options ) ) end
Build AsyncHttpClientConfig from an options Hash Use AsyncHttpClientConfig.new.to_s or test_httpclient.rb -v to see available settings and defaults in Hash notation.
# File lib/rjack-async-httpclient.rb, line 92 def build_client_config( options ) builder = AsyncHttpClientConfig::Builder.new options.each do |k,v| builder.send( "set_#{k}", v ) end builder.build end