CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

cURLLook 0.0.2

cURLLook 0.0.2

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Mar 2016
SPMSupports SPM

Maintained by Daniel Duan.



cURLLook 0.0.2

This μ-framework serializes your NSURLRequest object to a cURL command, so you can convey to a backend person clearly what kind of HTTP request your code is making.

let request: NSURLRequest
let aSession: NSURLSession

// … after you created your URL session and request, this will give you
// a cURL command that also performs this request
print(request.cURLRepresentation(withURLSession: aSession))


// alternatively, you can use this convenient proprety without a session:
print(request.cURLString)

Install

Credit

The code is an adaption from Alamofile