A collection of videos about Mac, iOS and Swift.

    Matthew Robinson


    NSURLProtocol, Foundation's man-in-the-middle

    NSConference 2014

    Tags: foundation networking

    Mattt Thompson described NSURLProtocol as "an Apple-sanctioned man-in-the-middle attack." Buried deep in Foundation's URL Loading System, NSURLProtocol allows us to intercept requests for URLs from the API libraries we are more familiar with, e.g. AFNetworking, NSURLConnection, UIWebView, NSURLDownload.