objective c - NSURLRequest setAllowsAnyHTTPSCertificate to Swift -


what equivalent swift code of objective-c code below?

[nsurlrequest setallowsanyhttpscertificate:yes forhost:[url host]]; 

this not available on foundation framework. it's apple private api , apple says application rejected if use private api.


Comments

Popular posts from this blog

java - Null response to php query in android, even though php works properly -

node.js - Using Node without global install -

php - CakePHP HttpSockets send array of paramms -