Data Fields


Detailed Description

The PPB_URLResponseInfo interface contains APIs for examining URL responses.

Refer to PPB_URLLoader for further information.


Field Documentation

GetBodyAsFileRef() returns a FileRef pointing to the file containing the response body.

This is only valid if PP_URLREQUESTPROPERTY_STREAMTOFILE was set on the URLRequestInfo used to produce this response. This file remains valid until the URLLoader associated with this URLResponseInfo is closed or destroyed.

Parameters:
[in]requestA PP_Resource corresponding to a URLResponseInfo.
Returns:
A PP_Resource corresponding to a FileRef if successful, 0 if PP_URLREQUESTPROPERTY_STREAMTOFILE was not requested or if the URLLoader has not been opened yet.

GetProperty() gets a response property.

Parameters:
[in]requestA PP_Resource corresponding to a URLResponseInfo.
[in]propertyA PP_URLResponseProperty identifying the type of property in the response.
Returns:
A PP_Var containing the response property value if successful, PP_VARTYPE_VOID if an input parameter is invalid.

IsURLResponseInfo() determines if a response is a URLResponseInfo.

Parameters:
[in]resourceA PP_Resource corresponding to a URLResponseInfo.
Returns:
PP_TRUE if the resource is a URLResponseInfo, PP_FALSE if the resource is invalid or some type other than URLResponseInfo.

The documentation for this struct was generated from the following file:
This site uses cookies to deliver and enhance the quality of its services and to analyze traffic. If you agree, cookies are also used to serve advertising and to personalize the content and advertisements that you see. Learn more about our use of cookies.