Pepper_31_C_interfaces
|
#include <ppb_url_response_info.h>
Public Attributes | |
PP_Bool(* | IsURLResponseInfo )(PP_Resource resource) |
struct PP_Var(* | GetProperty )(PP_Resource response, PP_URLResponseProperty property) |
PP_Resource(* | GetBodyAsFileRef )(PP_Resource response) |
The PPB_URLResponseInfo interface contains APIs for examining URL responses. Refer to PPB_URLLoader
for further information.
Definition at line 99 of file ppb_url_response_info.h.
PP_Resource(* PPB_URLResponseInfo_1_0::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.
[in] | request | A PP_Resource corresponding to a URLResponseInfo . |
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. Definition at line 140 of file ppb_url_response_info.h.
struct PP_Var(* PPB_URLResponseInfo_1_0::GetProperty)(PP_Resource response, PP_URLResponseProperty property) |
GetProperty() gets a response property.
[in] | request | A PP_Resource corresponding to a URLResponseInfo . |
[in] | property | A PP_URLResponseProperty identifying the type of property in the response. |
PP_Var
containing the response property value if successful, PP_VARTYPE_VOID
if an input parameter is invalid. Definition at line 123 of file ppb_url_response_info.h.
PP_Bool(* PPB_URLResponseInfo_1_0::IsURLResponseInfo)(PP_Resource resource) |
IsURLResponseInfo() determines if a response is a URLResponseInfo
.
[in] | resource | A PP_Resource corresponding to a URLResponseInfo . |
PP_TRUE
if the resource is a URLResponseInfo
, PP_FALSE
if the resource is invalid or some type other than URLResponseInfo
. Definition at line 111 of file ppb_url_response_info.h.