This repository has been archived by the owner on Dec 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 134
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 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: