[GH-ISSUE #95] Support URLSession async methods #61

Closed
opened 2026-03-03 19:11:25 +03:00 by kerem · 1 comment
Owner

Originally created by @pokryfka on GitHub (Mar 9, 2022).
Original GitHub issue: https://github.com/ProxymanApp/atlantis/issues/95

Traffic from URLSession async methods is not forwarded to Proxyman.

@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
extension URLSession {

    /// Convenience method to load data using an URLRequest, creates and resumes an URLSessionDataTask internally.
    ///
    /// - Parameter request: The URLRequest for which to load data.
    /// - Parameter delegate: Task-specific delegate.
    /// - Returns: Data and response.
    public func data(for request: URLRequest, delegate: URLSessionTaskDelegate? = nil) async throws -> (Data, URLResponse)

   // ...
}
Originally created by @pokryfka on GitHub (Mar 9, 2022). Original GitHub issue: https://github.com/ProxymanApp/atlantis/issues/95 Traffic from URLSession async methods is not forwarded to Proxyman. ``` @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *) extension URLSession { /// Convenience method to load data using an URLRequest, creates and resumes an URLSessionDataTask internally. /// /// - Parameter request: The URLRequest for which to load data. /// - Parameter delegate: Task-specific delegate. /// - Returns: Data and response. public func data(for request: URLRequest, delegate: URLSessionTaskDelegate? = nil) async throws -> (Data, URLResponse) // ... } ```
kerem closed this issue 2026-03-03 19:11:26 +03:00
Author
Owner

@pokryfka commented on GitHub (Mar 9, 2022):

my bad, the problem was elsewhere

<!-- gh-comment-id:1062459826 --> @pokryfka commented on GitHub (Mar 9, 2022): my bad, the problem was elsewhere
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/atlantis#61
No description provided.