One Logo Pool Ball
Foundation · IOS API REFERENCE

URLSession.DataTaskPublisher

struct · iOS 13.0+ · SDK 27.1

struct DataTaskPublisher

A publisher that delivers the results of performing URL session data tasks.

Members (3)

init · iOS 13.0+

init

TypeScript
static init(request: URLRequest, session: URLSession): URLSession_DataTaskPublisher
Swift declaration
init(request: URLRequest, session: URLSession)

Creates a data task publisher from the provided URL request and URL session. - Parameters: - request: The URL request from which to create a URL session data task. - session: The URL session to create the data task.

get · iOS 13.0+

request

TypeScript
get request(): URLRequest
Swift declaration
let request: URLRequest

The URL request performed by the data task associated with this publisher.

get · iOS 13.0+

session

TypeScript
get session(): URLSession
Swift declaration
let session: URLSession

The URL session that performs the data task associated with this publisher.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

URLSession.DataTaskPublisher.receive(subscriber:)

This declaration needs Swift generic type arguments. (no canonical witness for S)

All Foundation types →