Contents

responseHeaderFields

The HTTP response headers received from the server upon completion of the upload.

Declaration

var responseHeaderFields: [String : String]? { get }

Mentioned in

Return Value

A dictionary of response header fields, or nil if the job has not completed or no HTTP response was received.

Discussion

This property is populated when the job reaches a terminal state (PHAssetResourceUploadJobStateSucceeded or PHAssetResourceUploadJobStateFailed). It contains the HTTP response headers returned by the destination server.

Header field names are normalized to lowercase for consistent lookup.

See Also

Inspecting a job