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