- 授权协议: MIT
- 开发语言: Objective-C
- 操作系统: OS X
- 软件首页: https://github.com/tumblr/JXHTTP
- 软件文档: https://github.com/tumblr/JXHTTP
软件介绍
JXHTTP 是来自 tumblr 的 iOS 和 OS X 上的网络连接库。
示例
Asynchronous
JXHTTPOperation *op = [JXHTTPOperation withURLString:@"https://encrypted.google.com/"]; op.didFinishLoadingBlock = ^(JXHTTPOperation *op) { NSLog(@"%@", op.responseString); }; [[JXHTTPOperationQueue sharedQueue] addOperation:op];
Synchronous
JXHTTPOperation *op = [JXHTTPOperation withURLString:@"https://encrypted.google.com/"]; [op startAndWaitUntilFinished]; NSLog(@"%@", op.responseString);
Complex
NSURL *postURL = [NSURL URLWithString:@"https://web.site/api/POST"]; NSDictionary *postParams = @{ @"make": @"Ferrari", @"model": @"458 Italia" }; JXHTTPOperation *op = [[JXHTTPOperation alloc] initWithURL:postURL]; op.requestBody = [[JXHTTPFormEncodedBody alloc] initWithDictionary:postParams]; op.requestCachePolicy = NSURLRequestReloadIgnoringLocalAndRemoteCacheData; op.responseDataFilePath = @"/tmp/downloaded_data"; op.trustedHosts = @[ postURL.host ]; op.performsBlocksOnMainQueue = YES; op.didSendDataBlock = ^(JXHTTPOperation *op) { NSLog(@"%lld bytes uploaded so far", op.bytesUploaded); }; [[JXHTTPOperationQueue sharedQueue] addOperation:op];
Open Data Structures
Pat Morin / AU Press / 2013-6 / USD 29.66
Offered as an introduction to the field of data structures and algorithms, Open Data Structures covers the implementation and analysis of data structures for sequences (lists), queues, priority queues......一起来看看 《Open Data Structures》 这本书的介绍吧!