• 大小: 55.44MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-04-02
  • 语言: 其他
  • 标签: 下厨房    

资源简介

下厨房 源码。

资源截图

代码片段和文件信息

// AFHTTPRequestOperation.m
// Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)
//
// Permission is hereby granted free of charge to any person obtaining a copy
// of this software and associated documentation files (the “Software“) to deal
// in the Software without restriction including without limitation the rights
// to use copy modify merge publish distribute sublicense and/or sell
// copies of the Software and to permit persons to whom the Software is
// furnished to do so subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND EXPRESS OR
// IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER
// LIABILITY WHETHER IN AN ACTION OF CONTRACT TORT OR OTHERWISE ARISING FROM
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

#import “AFHTTPRequestOperation.h“

static dispatch_queue_t http_request_operation_processing_queue() {
    static dispatch_queue_t af_http_request_operation_processing_queue;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken ^{
        af_http_request_operation_processing_queue = dispatch_queue_create(“com.alamofire.networking.http-request.processing“ DISPATCH_QUEUE_CONCURRENT);
    });

    return af_http_request_operation_processing_queue;
}

static dispatch_group_t http_request_operation_completion_group() {
    static dispatch_group_t af_http_request_operation_completion_group;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken ^{
        af_http_request_operation_completion_group = dispatch_group_create();
    });

    return af_http_request_operation_completion_group;
}

#pragma mark -

@interface AFURLConnectionOperation ()
@property (readwrite nonatomic strong) NSURLRequest *request;
@property (readwrite nonatomic strong) NSURLResponse *response;
@end

@interface AFHTTPRequestOperation ()
@property (readwrite nonatomic strong) NSHTTPURLResponse *response;
@property (readwrite nonatomic strong) id responseobject;
@property (readwrite nonatomic strong) NSError *responseSerializationerror;
@property (readwrite nonatomic strong) NSRecursiveLock *lock;
@end

@implementation AFHTTPRequestOperation
@dynamic response;
@dynamic lock;

- (instancetype)initWithRequest:(NSURLRequest *)urlRequest {
    self = [super initWithRequest:urlRequest];
    if (!self) {
        return nil;
    }

    self.responseSerializer = [AFHTTPResponseSerializer serializer];

    return self;
}

- (void)setResponseSerializer:(AFHTTPResponseSerializer  *)responseSerializer {
    NSParameterAssert(responseSerializer);

    [self.lock l

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-01-04 04:20  XCFAPP-master\
     文件         494  2016-01-04 04:20  XCFAPP-master\.gitignore
     文件        1074  2016-01-04 04:20  XCFAPP-master\LICENSE
     目录           0  2016-01-04 04:20  XCFAPP-master\Picture\
     文件      146238  2016-01-04 04:20  XCFAPP-master\Picture\RAC.png
     文件        2013  2016-01-04 04:20  XCFAPP-master\README.md
     目录           0  2016-01-04 04:20  XCFAPP-master\XCFApp\
     文件         392  2016-01-04 04:20  XCFAPP-master\XCFApp\Podfile
     文件        2320  2016-01-04 04:20  XCFAPP-master\XCFApp\Podfile.lock
     目录           0  2016-01-04 04:20  XCFAPP-master\XCFApp\Pods\
     目录           0  2016-01-04 04:20  XCFAPP-master\XCFApp\Pods\AFNetworking\
     目录           0  2016-01-04 04:20  XCFAPP-master\XCFApp\Pods\AFNetworking\AFNetworking\
     文件        4562  2016-01-04 04:20  XCFAPP-master\XCFApp\Pods\AFNetworking\AFNetworking\AFHTTPRequestOperation.h
     文件        7513  2016-01-04 04:20  XCFAPP-master\XCFApp\Pods\AFNetworking\AFNetworking\AFHTTPRequestOperation.m
     文件       20033  2016-01-04 04:20  XCFAPP-master\XCFApp\Pods\AFNetworking\AFNetworking\AFHTTPRequestOperationManager.h
     文件       11757  2016-01-04 04:20  XCFAPP-master\XCFApp\Pods\AFNetworking\AFNetworking\AFHTTPRequestOperationManager.m
     文件       15366  2016-01-04 04:20  XCFAPP-master\XCFApp\Pods\AFNetworking\AFNetworking\AFHTTPSessionManager.h
     文件       12663  2016-01-04 04:20  XCFAPP-master\XCFApp\Pods\AFNetworking\AFNetworking\AFHTTPSessionManager.m
     文件        8057  2016-01-04 04:20  XCFAPP-master\XCFApp\Pods\AFNetworking\AFNetworking\AFNetworkReachabilityManager.h
     文件        9499  2016-01-04 04:20  XCFAPP-master\XCFApp\Pods\AFNetworking\AFNetworking\AFNetworkReachabilityManager.m
     文件        1921  2016-01-04 04:20  XCFAPP-master\XCFApp\Pods\AFNetworking\AFNetworking\AFNetworking.h
     文件        5261  2016-01-04 04:20  XCFAPP-master\XCFApp\Pods\AFNetworking\AFNetworking\AFSecurityPolicy.h
     文件       12741  2016-01-04 04:20  XCFAPP-master\XCFApp\Pods\AFNetworking\AFNetworking\AFSecurityPolicy.m
     文件       17700  2016-01-04 04:20  XCFAPP-master\XCFApp\Pods\AFNetworking\AFNetworking\AFURLConnectionOperation.h
     文件       27595  2016-01-04 04:20  XCFAPP-master\XCFApp\Pods\AFNetworking\AFNetworking\AFURLConnectionOperation.m
     文件       22746  2016-01-04 04:20  XCFAPP-master\XCFApp\Pods\AFNetworking\AFNetworking\AFURLRequestSerialization.h
     文件       53365  2016-01-04 04:20  XCFAPP-master\XCFApp\Pods\AFNetworking\AFNetworking\AFURLRequestSerialization.m
     文件       12184  2016-01-04 04:20  XCFAPP-master\XCFApp\Pods\AFNetworking\AFNetworking\AFURLResponseSerialization.h
     文件       28299  2016-01-04 04:20  XCFAPP-master\XCFApp\Pods\AFNetworking\AFNetworking\AFURLResponseSerialization.m
     文件       31377  2016-01-04 04:20  XCFAPP-master\XCFApp\Pods\AFNetworking\AFNetworking\AFURLSessionManager.h
     文件       51157  2016-01-04 04:20  XCFAPP-master\XCFApp\Pods\AFNetworking\AFNetworking\AFURLSessionManager.m
............此处省略2542个文件信息

评论

共有 条评论