Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 365 Bytes

how-to-curl-alamofire.md

File metadata and controls

16 lines (11 loc) · 365 Bytes

How to curl alamofire

let request = Alamofire.request("\(url)", method: .get, encoding: JSONEncoding.default, headers: headers).responseJSON { response in

}

print("Request: \(request.debugDescription)")

Will print out a full curl command containing all the parameters and everything else.

curl -v \
	-H "Accept-Language: en;q=1.0" \