Pepper_56_C++_interfaces
Pepper_56_C++_interfaces
 All Classes Namespaces Files Functions Typedefs Enumerations Macros Groups
pp::URLResponseInfo Class Reference

URLResponseInfo provides an API for examining URL responses. More...

#include <url_response_info.h>

Inheritance diagram for pp::URLResponseInfo:
pp::Resource

Public Member Functions

 URLResponseInfo ()
 
 URLResponseInfo (PassRef, PP_Resource resource)
 
 URLResponseInfo (const URLResponseInfo &other)
 The copy constructor for URLResponseInfo.
 
Var GetProperty (PP_URLResponseProperty property) const
 
FileRef GetBodyAsFileRef () const
 
Var GetURL () const
 
Var GetRedirectURL () const
 
Var GetRedirectMethod () const
 
int32_t GetStatusCode () const
 
Var GetStatusLine () const
 
Var GetHeaders () const
 
- Public Member Functions inherited from pp::Resource
 Resource ()
 The default constructor.
 
 Resource (const Resource &other)
 
virtual ~Resource ()
 Destructor.
 
Resourceoperator= (const Resource &other)
 
bool is_null () const
 
PP_Resource pp_resource () const
 
PP_Resource detach ()
 

Additional Inherited Members

- Protected Member Functions inherited from pp::Resource
 Resource (PP_Resource resource)
 
 Resource (PassRef, PP_Resource resource)
 
void PassRefFromConstructor (PP_Resource resource)
 
void Clear ()
 Sets this resource to null. This releases ownership of the resource.
 

Detailed Description

URLResponseInfo provides an API for examining URL responses.

Constructor & Destructor Documentation

pp::URLResponseInfo::URLResponseInfo ( )
inline

Default constructor. This constructor creates an is_null resource.

pp::URLResponseInfo::URLResponseInfo ( PassRef  ,
PP_Resource  resource 
)

A constructor used when you have received a PP_Resource as a return value that has already been reference counted.

Parameters
[in]resourceA PP_Resource corresponding to a resource.

Member Function Documentation

FileRef pp::URLResponseInfo::GetBodyAsFileRef ( ) const

This function 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.

Returns
A FileRef corresponding to a FileRef if successful, an is_null object if PP_URLREQUESTPROPERTY_STREAMTOFILE was not requested or if the URLLoader has not been opened yet.
Var pp::URLResponseInfo::GetHeaders ( ) const
inline

This function gets the PP_URLRESPONSEPROPERTY_HEADERS property for the response.

Returns
An is_string Var containing the response property value if successful, is_undefined Var if an input parameter is invalid.
Var pp::URLResponseInfo::GetProperty ( PP_URLResponseProperty  property) const

This function gets a response property.

Parameters
[in]propertyA PP_URLResponseProperty identifying the type of property in the response.
Returns
A Var containing the response property value if successful, is_undefined Var if an input parameter is invalid.
Var pp::URLResponseInfo::GetRedirectMethod ( ) const
inline

This function gets the PP_URLRESPONSEPROPERTY_REDIRECTMETHOD property for the response.

Returns
An is_string Var containing the response property value if successful, is_undefined Var if an input parameter is invalid.
Var pp::URLResponseInfo::GetRedirectURL ( ) const
inline

This function gets the PP_URLRESPONSEPROPERTY_REDIRECTURL property for the response.

Returns
An is_string Var containing the response property value if successful, is_undefined Var if an input parameter is invalid.
int32_t pp::URLResponseInfo::GetStatusCode ( ) const
inline

This function gets the PP_URLRESPONSEPROPERTY_STATUSCODE property for the response.

Returns
A int32_t containing the response property value if successful, is_undefined Var if an input parameter is invalid.
Var pp::URLResponseInfo::GetStatusLine ( ) const
inline

This function gets the PP_URLRESPONSEPROPERTY_STATUSLINE property for the response.

Returns
An is_string Var containing the response property value if successful, is_undefined Var if an input parameter is invalid.
Var pp::URLResponseInfo::GetURL ( ) const
inline

This function gets the PP_URLRESPONSEPROPERTY_URL property for the response.

Returns
An is_string Var containing the response property value if successful, is_undefined Var if an input parameter is invalid.

The documentation for this class was generated from the following file: