This is a Network Framework for iOS URL Loading System.
A simple example of sending Request.
imort ALTransaction and declared instance
#import "ALTransaction.h"
@interface SomethingViewController : UIViewController
{
ALTransaction *_alt;
}
init instance and make a Seletors
- (id)initWithCoder:(NSCoder *)aDecoder
{
self = [super initWithCoder:aDecoder];
if (self) {
_alt = [[ALTransaction alloc] initWithTarget:self
successSelector:@selector(recieveSuccess:)
failureSelector:@selector(recieveFailure:)];
}
return self;
}
- (void)recieveSuccess:(id)result
{
}
- (void)recieveFailure:(id)result
{
}
use ALTransaction with UserInfo
- (IBAction)sendSomethingAction:(id)sender
{
[_alt sendRequestForUserInfo:@{ @"url": @"http://www.example.com/v1/something/URL" }];
}
how to user other HTTPMethod?
[_alt sendRequestForUserInfo:@{
@"url" : @"http://www.example.com/v1/something/URL",
@"httpMethod" : @"post",
@"param" : @{ @"_id": @"528d25bf8055296c3a000001" }
}];
More info - /Framework/Network/UserInfo.plist
- ResponseSerialization Bug fix (may be...CR, LF Peoblem.)
- Various Network supported in ALTransaction (HTTP, TCP/IP)
- Progressive UI
- Background Download
- Background Upload for Amazon S3
Think you’ve found a bug?
Please open a case in issue page.
@dotNetTree (Mentor)
GNU GPL V2 - Read a Lincense file.
iOS URL Loading System
What is REST? - from Wikipedia
What is Comet - from Wikipedia
RFC 2616 - Hypertext Transfer Protocol — HTTP/1.1