-
Type: New Feature
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.9.1
-
Component/s: iOS Client
Create a session object which could instanciate a new ASIHTTPRequest with predefined values, like server URL, repository, etc.
A session should execute a request synchronously and asynchrnously, with blocks.
NUXSession session = [NUXSession initWithServer: @"http://localhost:8080/nuxeo" login: @"Administrator" password: @"pwd"]; // Allow token auth ? session.server = @""; session.login = @""; session.password = @""; session.repository = @""; //default by default // We might delegate Authentification to an Ahtenticator (Basic, Portal, etc.) -> 2nd shot // Could be cool to expose Queue object, but not the ASIHTTP API [session queue]; // ASINetworkQueues object to track progress [session addDefaultSchema: @[@"", @""]]; [session addDefaultCategory: @[@"", @""]];