A collection of videos about Mac, iOS and Swift.

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

    By Matthew Robinson - (all videos) - @mttrb

    At 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.