Instance Property

readyState

The current state of the request.

Declaration

tvOS
readonly attribute int readyState;
Safari Desktop, Safari Mobile
readonly attribute unsigned short readyState;

Discussion

This attribute can have the following values:

  • 0 - UNSENT

  • 1 - OPENED

  • 2 - HEADERS_RECEIVED

  • 3 - LOADING

  • 4 - DONE

See Also

Retrieving Request Information

metrics

A dictionary of keys used to request start and response start and end times.

response

The response entity body.

responseText

The response to the request.

responseType

The type of response.

responseXML

The document response entity body.

status

The HTTP status code.

statusText

The HTTP status text.