Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 445 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 445 Bytes

Agent

Minimalistic Swift HTTP request agent for iOS and OS X.

Introduction

This is a tiny framework that gives you nice a API for crafting an HTTP request.

Usage

GET

Agent.get("http://google.com", { (agent: Agent, response: NSURLResponse) -> () in
  println(response)
})
let req = Agent.get("http://apple.com")
req.end({ (agent: Agent, response: NSURLResponse) -> () in
  println(response)
})