Instance Method

urlSession(_:writeClosedFor:)

Tells the delegate that the write side of the underlying socket has been closed.

Declaration

optional func urlSession(_ session: URLSession, writeClosedFor streamTask: URLSessionStreamTask)

Parameters

session

The session containing the stream task that closed writes.

streamTask

The stream task that closed writes.

Discussion

This method may be called even if no writes are currently in progress.

See Also

Delegate Methods

func urlSession(URLSession, readClosedFor: URLSessionStreamTask)

Tells the delegate that the read side of the underlying socket has been closed.

func urlSession(URLSession, betterRouteDiscoveredFor: URLSessionStreamTask)

Tells the delegate that a better route to the host has been detected for the stream.

func urlSession(URLSession, streamTask: URLSessionStreamTask, didBecome: InputStream, outputStream: OutputStream)

Tells the delegate that the stream task has been completed as a result of the stream task calling the captureStreams() method.