Skip to content

hypoyao/WRHttpDNS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WRHttpDNS

  • A simple httpDNS framework, support http and https, but not SNI currently.
  • High availability, request DNS info asynchronously, abandon overdue or unusable DNS Cache automatically, change DNS cache as network changed.
  • Provide GoogleDNS service default, add other custom DNS service easily as well.

Installation

Just add this to your Podfile

pod 'WRHttpDNS'

Other approaches

Download all files under WRHttpDNS directory.

Usage

Support NSURLSession and NSURLConnection,call the method before a real request.

[[WRHttpDNSManager shareInstance] useHttpDNSWithRequest:request];

If network responsed an error, you should check the error.

[[WRHttpDNSManager shareInstance] checkHttpDNSError:error domain:domain]

As https connection, you should implement some delegate like WRURLSessionDelegate or WRURLConnecitonDelegate.

License

WRHttpDNS is released under the MIT license. See LICENSE for details.

About

A simple httpDNS, support http and https

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published