lua-http icon indicating copy to clipboard operation
lua-http copied to clipboard

Allow passing custom dns_resolver to client.connect

Open daurnimator opened this issue 7 years ago • 2 comments

By passing a custom dns_resolver object you can:

  • Use a custom nameserver
  • Specify host=>ip mapping manually using a cqueues dns.hosts object

It has been written as a base for connection pooling (#10) and Happy Eyeballs.

daurnimator avatar Aug 22 '18 13:08 daurnimator

Coverage Status

Coverage increased (+0.2%) to 86.9% when pulling 5a80e99459f4f893bfbfaa324a9fb08bcaedf116 on client.dns_resolver into e7cb0769ea75655a04b9b32de9c66bf1df99a401 on master.

coveralls avatar Aug 22 '18 16:08 coveralls

The http.socks module should gain a similar ability.

daurnimator avatar Aug 26 '18 11:08 daurnimator