资源简介
下载,解压缩,打开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个文件信息
相关资源
- 一个基于Swift的提示HUD,超级简单易用
- swift-swift版本的简易WKWebview浏览器带加
- swift-模仿类似聊天的UI
- iOS Swift简单Demo
- Core Data by Tutorials (Swift 4.2)
- OSS图片上传 swift
- 基于swift结合uiview做的一个app
- 小码哥Swift5.0完整版视频教程
- swift-一行代码画一个表格UIView分类可
- AppCode,新书推荐,Beginning iOS 11 Prog
- Desgin Patterns by Tutorials v1.0 (Swift 4 &
- swift进阶全部格式集合最新第四版
- swift-PSImageEditors一个简而至美的图片编
- swift-通讯录最简单的中英文混合排序
-
swift-iOS平台下基于IJKpla
yer封装的视 - swift-iOS编写的日历模仿大姨妈app中的
- ios-swift纯代码精仿拼多多.zip
-
swift-YLFollowMusicPla
yer一个在线音乐播 - ios-swift 版 俄罗斯方块.zip
- ios-Swift多国语言本地切换方法升级S
- 高清彩版 Ray Wenderlich Advanced-Swift-4.0
- 函数式swift 函数式编程中文版高清p
- Beginning Swift Master the fundamentals of pro
- swift4.0进阶
- objccn-app-architecture,pdf epub mobi App架构
- 函数式Swift4-最新版
- Swift语言实战晋级-课件代码源文件(
- Objc中国--函数式Swift4.0版本
- swift 控件代码
- App Architecture: iOS Application Design Patte
评论
共有 条评论