HTTPInterceptor
简介
帮助设置 HTTP(s) 请求的拦截器,修改它们,返回自定义响应。
变更日志
请参阅 CHANGELOG
安装
Cocoapods
这是推荐安装此软件包的方式。
- 将以下行添加到您的 Podfile 中
pod 'HTTPInterceptor'
- 运行以下命令以获取和构建您的依赖项
pod install
手工安装
如果您喜欢手动安装此软件包,请按照以下步骤操作
- 请确保您的项目是git仓库。如果不是,只需从项目根目录运行以下命令
git init
- 通过运行以下命令将HTTPInterceptor作为git子模块添加。
git submodules add https://github.com/ladeiko/HTTPInterceptor.git
- 将'子模块/HTTPInterceptor/Sources'文件夹中的文件添加到您的项目中。
用法
请参阅HTTPInterceptorDemoTests.swift中的用法示例
许可证
本项目的许可证为MIT许可 - 详细信息请参阅LICENSE文件