资源简介
下载,解压缩,打开YourApplication
代码片段和文件信息
// AFHTTPSessionManager.m
// Copyright (c) 2011–2016 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 “AFHTTPSessionManager.h“
#import “AFURLRequestSerialization.h“
#import “AFURLResponseSerialization.h“
#import
#import
#import
#import
#import
#import
#import
#import
#if TARGET_OS_IOS || TARGET_OS_TV
#import
#elif TARGET_OS_WATCH
#import
#endif
@interface AFHTTPSessionManager ()
@property (readwrite nonatomic strong) NSURL *baseURL;
@end
@implementation AFHTTPSessionManager
@dynamic responseSerializer;
+ (instancetype)manager {
return [[[self class] alloc] initWithbaseURL:nil];
}
- (instancetype)init {
return [self initWithbaseURL:nil];
}
- (instancetype)initWithbaseURL:(NSURL *)url {
return [self initWithbaseURL:url sessionConfiguration:nil];
}
- (instancetype)initWithSessionConfiguration:(NSURLSessionConfiguration *)configuration {
return [self initWithbaseURL:nil sessionConfiguration:configuration];
}
- (instancetype)initWithbaseURL:(NSURL *)url
sessionConfiguration:(NSURLSessionConfiguration *)configuration
{
self = [super initWithSessionConfiguration:configuration];
if (!self) {
return nil;
}
// Ensure terminal slash for baseURL path so that NSURL +URLWithString:relativeToURL: works as expected
if ([[url path] length] > 0 && ![[url absoluteString] hasSuffix:@“/“]) {
url = [url URLByAppendingPathComponent:@““];
}
self.baseURL = url;
self.requestSerializer = [AFHTTPRequestSerializer serializer];
self.responseSerializer = [AFJSONResponseSerializer serializer];
return self;
}
#pragma mark -
- (void)setRequestSerializer:(AFHTTPRequestSerializer *)requestSerializer {
NSParameterAs
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-06-08 17:51 OCfr
文件 6148 2017-06-08 18:04 OCfr
目录 0 2017-06-08 18:04 __MACOSX\
目录 0 2017-06-08 18:04 __MACOSX\OCfr
文件 120 2017-06-08 18:04 __MACOSX\OCfr
目录 0 2017-06-08 17:52 OCfr
文件 15 2017-06-08 17:50 OCfr
文件 137 2017-06-08 17:50 OCfr
文件 73 2017-06-08 17:50 OCfr
文件 23 2017-06-08 17:50 OCfr
目录 0 2017-06-08 17:50 OCfr
文件 177 2017-06-08 17:50 OCfr
文件 2119 2017-06-08 17:52 OCfr
目录 0 2017-06-08 17:50 OCfr
文件 40 2017-06-08 17:50 OCfr
目录 0 2017-06-08 18:04 __MACOSX\OCfr
目录 0 2017-06-08 18:04 __MACOSX\OCfr
文件 171 2017-06-08 17:50 __MACOSX\OCfr
目录 0 2017-06-08 17:50 OCfr
文件 169 2017-06-08 17:50 OCfr
目录 0 2017-06-08 17:50 OCfr
目录 0 2017-06-08 17:50 OCfr
文件 169 2017-06-08 17:50 OCfr
目录 0 2017-06-08 17:52 OCfr
目录 0 2017-06-08 17:50 OCfr
文件 527 2017-06-08 17:50 OCfr
目录 0 2017-06-08 17:50 OCfr
文件 937 2017-06-08 17:50 OCfr
目录 0 2017-06-08 17:50 OCfr
文件 92 2017-06-08 17:50 OCfr
目录 0 2017-06-08 17:50 OCfr
............此处省略131个文件信息
相关资源
-
Contactsfr
amework的DemoSwift,通讯录 - swift开发拼图小游戏
- 天气预报iPhone6版本swift工程
-
Using Swift With Cocoa and ob
jective-C中文版 - IOS Swift 表达式计算机
- 讯飞科大语音识别白皮书
- 极客学院PPT
- iOS_Animations_by_Tutorials_v6.0.0.zip (iOS1
- swift写的一款计算器demo
- swift,苹果开发简易聊天室
- swift-原OC项目用swift实现纯swift项目可
- swift-豆瓣电台源代码、以及图片资源
- ios swift 在线音乐播放器
- swift4.0 彻底实现国际化,支持程序内
- swift-一款简单优雅的iOS日历控件
- swift-LJCalendar自定义农历新历日历
- oc代码直接转swift代码
- swift4.2网络请求的三种封装
- iOS 日历制作
- Advanced Swift - update to swift 4.0
- social force model in swift
- IOS简单计算器swift4版本含开发文档
- 疯狂Swift讲义PDF完整版网盘地址(10
- iOS Charts框架渐变BarChartView
- 《iOS开发指南》第5版链接关东升
- swift-TabPageViewControlleriOS分页视图控制
- SwiftiOS应用开发实战完整版刘铭
- 《The Swift Programming Language》中文文档
- The swift programming language (Swift 5.0)
- The Swift Programming Language (Swift 5.0)包
评论
共有 条评论