mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #385] Streaming connection #245
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#245
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shanehartman on GitHub (Jun 27, 2017).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/385
Description:
I'm trying to make a request using OAuthSwift that is equivalent to URLSessionTask method uploadTask(withStreamedRequest:) see Apple Docs. I saw https://github.com/OAuthSwift/OAuthSwift/issues/60 discusses OAuthSwiftClient.authorizationHeaderForMethod and this is a possible workaround but this class method on OAuthSwiftClient no longer exists. It must have been deprecated. Any suggestions on how to make a request to initiate a streaming connection using OAuthSwift? Also, I'm interested in possibly contributing to OAuthSwift please tell me how and perhaps I can create an http request to satisfy this use case. The big issue is that there needs to be a delegate method similar to Apple's URLSessionDataTaskDelegate so that as new data is passed via the streaming connection the delegate method ingesting the data gets called.
OAuth Provider (Tw)itter, Github, ..):
Twitter
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
[ x] 8.0 (Swift 3.0)
8.0 (Swift 2.3)
7.3.1
other: (Please fill in the version you are using.)
objective c
@phimage commented on GitHub (Jun 29, 2017):
you could look at OAuthSwiftAlamofire
https://github.com/OAuthSwift/OAuthSwiftAlamofire/blob/master/Sources/OAuthSwiftRequestAdapter.swift
there is some code to update an URLRequest
The code to sign has moved to OauthSwiftCredential intead of OauthSwiftclient