HTTPInterceptor
Introduction
Helps to setup interceptor for HTTP(s) requests, modify them, return custom response.
Changelog
See CHANGELOG
Installation
Cocoapods
This is the recommended way of installing this package.
- Add the following line to your Podfile
pod 'HTTPInterceptor'- Run the following command to fetch and build your dependencies
pod installManually
If you prefer to install this package manually, just follow these steps:
- Make sure your project is a git repository. If it isn't, just run this command from your project root folder:
git init- Add HTTPInterceptor as a git submodule by running the following command.
git submodules add https://github.com/ladeiko/HTTPInterceptor.git- Add files from 'submodules/HTTPInterceptor/Sources' folder to your project.
Usage
See usage examples in HTTPInterceptorDemoTests.swift
LICENSE
This project is licensed under the MIT License - see the LICENSE file for details