Classes
The following classes are available globally.
-
CaffeineHTTPProxyhooks into the iOS URL loading system to accelerate the network requests you specify usingallow:anddeny:.The Caffeine API consists of 3 main functions:
start,allow:, anddeny:This class is packaged inside the
Proxeinemodule, so it must be imported into your App Delegate.To a Swift project:
import ProxeineTo an Objective-C Project:
import "Proxeine-Swift.h"By Default, Caffeine is added to all instances of NSURLSessionConfiguration.defaultSessionConfiguration().
Caffeine will work alongside networking libraries such as Alamofire or AFNetworking.
This class uses the open source CocoaAsyncSocket library’s
GCDAsyncUdpSocketDelegateprotocol for frictionless UDP-diagnostic logging.Note
If at any time you require help, please contact our engineers at help@caffei.net
See moreWarning
NSURLSessions that do not use
NSURLSession.sharedSession()or theNSURLSessionConfiguration.defaultSessionConfigurationshould calladdCaffeineon their session configurations.Declaration
Swift
@objc final public class CaffeineHTTPProxy : NSObject, GCDAsyncUdpSocketDelegate
Classes Reference