Latest 1.0.2
Homepage https://github.com/ladeiko/HTTPInterceptor
License MIT
Platforms ios 10.0, requires ARC
Frameworks CoreServices
Authors

Platform
CocoaPods Compatible
Swift support
Build Status

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 install

Manually

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

Latest podspec

{
    "name": "HTTPInterceptor",
    "version": "1.0.2",
    "summary": "HTTPInterceptor - code to intercept http requests and reply with custom response",
    "homepage": "https://github.com/ladeiko/HTTPInterceptor",
    "license": "MIT",
    "authors": {
        "Siarhei Ladzeika": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ladeiko/HTTPInterceptor.git",
        "tag": "1.0.2"
    },
    "platforms": {
        "ios": "10.0"
    },
    "requires_arc": true,
    "static_framework": true,
    "source_files": "Sources/*.{h,m}",
    "frameworks": "CoreServices"
}

Pin It on Pinterest

Share This