TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Mar 2016 |
SPMSupports SPM | ✗ |
Maintained by Daniel Duan.
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)
The code is an adaption from Alamofile