Data Fields
PP_Bool(* | IsURLResponseInfo )(PP_Resource resource) |
struct PP_Var(* | GetProperty )(PP_Resource response, PP_URLResponseProperty property) |
PP_Resource(* | GetBodyAsFileRef )(PP_Resource response) |
Detailed Description
The PPB_URLResponseInfo interface contains APIs for examining URL responses.
Refer to PPB_URLLoader
for further information.
Field Documentation
PP_Resource(* PPB_URLResponseInfo::GetBodyAsFileRef)(PP_Resource response) |
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] request A PP_Resource
corresponding to aURLResponseInfo
.
- Returns:
- A
PP_Resource
corresponding to aFileRef
if successful, 0 ifPP_URLREQUESTPROPERTY_STREAMTOFILE
was not requested or if theURLLoader
has not been opened yet.
struct PP_Var(* PPB_URLResponseInfo::GetProperty)(PP_Resource response, PP_URLResponseProperty property) [read] |
GetProperty() gets a response property.
- Parameters:
[in] request A PP_Resource
corresponding to aURLResponseInfo
.[in] property A 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.
PP_Bool(* PPB_URLResponseInfo::IsURLResponseInfo)(PP_Resource resource) |
IsURLResponseInfo() determines if a response is a URLResponseInfo
.
- Parameters:
[in] resource A PP_Resource
corresponding to aURLResponseInfo
.
- Returns:
PP_TRUE
if the resource is aURLResponseInfo
,PP_FALSE
if the resource is invalid or some type other thanURLResponseInfo
.
The documentation for this struct was generated from the following file: