New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom headers? #23
Comments
like this? Just.get("http://httpbin.org/get", headers:["Content-Type": "Swift is Sweet"]) |
Yeah hehe, found it after I wrote it... anywhere to set this as defaults? Trying to pass around the Authorisation Bearer into all the requests. |
Mostly trying to replicate this, where I funnel all the requests into a single thing that adds anything I need if let oAuthToken = token {
request.addValue("Bearer \(oAuthToken.code)", forHTTPHeaderField: "Authorization")
}
NSURLSession.sharedSession().dataTaskWithRequest(request) { (data, response, error) in Closing as this is only a question |
@raulriera I made a new release to address this 0.4.3 馃榾 |
That is awesome! thanks 馃拑 |
Hey, quick follow up... after the new release I am unable to use it with carthage
For some reason the tag shows as "", have you seen this before? |
Bah, I am full of fails lately hehe... upgrading carthage and git worked |
Hey 馃槵
I can see through the code that indeed the library support custom headers, anywhere you can point me in the docs for it? Can't seem to find anything
The text was updated successfully, but these errors were encountered: