Domainer 1.0.2

Domainer 1.0.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Aug 2016

Maintained by Felix Lin.



Domainer 1.0.2

  • By
  • felix.lin

This library provides manage multi-domain table.

It provides:

  • Manage multi-domain mapping main domain.
  • Find best domain which with low latency.
  • Bypass dns resolver when IP table exists the domain.
  • Swizzle NSURLRequest method in runtime.

How To Use

Create domain table with Json format

[
{"mainDomainName":"www.mainDomain.com","mapping":["www.domain1.com","www.domain2.com","www.domain3.com"]}
,
{"mainDomainName":"www.mainDomain2.com","mapping":["www.domain4.com","www.domain5.com","www.domain6.com"]}
]

Set mapping

[Domainer setMapper:jsonArray];

Run with callback

[Domainer runWithCompleteHandler:^(BOOL sucess, NSArray *noResolvedDomain) {
    if(sucess){
     //Start query some api...
    };
}];

Screen shot

Editor preferences pane

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

Domainer is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "Domainer"

Author

Felix.lin

License

Domainer is available under the MIT license. See the LICENSE file for more info.