Latest 0.3.0
License MIT
Platforms ios 10.0, requires ARC

Request Controller Carthage compatible

This project is a HTTP request component in Swift, and it’s inspired by Exploring MVC-N in Swift and Mock Classes You Don’t Own.

  • Current version supports Swift 3.


First thing is to import the RequestContoller framework.
Once imported, you’re able to create a request and then set up the response handler.

let url = URL(string: "")!
let requestController = RequestContoller()
let request = requestContoller.request(url).response { result in
  do {
    let (response, data) = try result.unwrap()
    // Response handling
  } catch let error {
    // Error handling

Installed by Carthage

Add the following line into your Cartfile,

  github "ShengHuaWu/RequestController"

, and then run carthage update --platform ios in your terminal.

Installed by CocoaPods

Create a Podfile as following,

source ''
platform :ios, '9.0'

pod 'RequestController'

, and then run pod install in your terminal.

Latest podspec

    "name": "RequestController",
    "version": "0.3.0",
    "summary": "Swift HTTP request component.",
    "description": "This project is a HTTP request component in Swift.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "ShengHua Wu": "[email protected]"
    "social_media_url": "",
    "platforms": {
        "ios": "10.0"
    "source": {
        "git": "",
        "tag": "0.3.0"
    "source_files": "RequestController/*.swift",
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"

Pin It on Pinterest

Share This