Shaka Player Embedded
Instance Methods | Properties | List of all members
ShakaPlayerResponse Class Reference

#import <net_objc.h>

Inheritance diagram for ShakaPlayerResponse:

Instance Methods

(instancetype) - NS_UNAVAILABLE
 
(instancetype) - initWithResponse:
 
(void) - finalize:
 

Properties

NSString * uri
 
NSString * originalUri
 
NSMutableDictionary< NSString *, NSString * > * headers
 
bool fromCache
 
NSNumber * timeMs
 
NSData * data
 

Detailed Description

Defines a response object. This includes the response data and header info. This is given back from the scheme plugin. This is passed to a response filter before being returned from the request call.

Definition at line 73 of file net_objc.h.

Method Documentation

§ finalize:()

- (void) finalize: (shaka::Response *)  response

Provided by category ShakaPlayerResponse(Internal).

§ initWithResponse:()

- (instancetype) initWithResponse: (const shaka::Response &)  response

Provided by category ShakaPlayerResponse(Internal).

§ NS_UNAVAILABLE()

- (instancetype) NS_UNAVAILABLE

Property Documentation

§ data

- (NSData*) data
readwriteatomicassign

The data of the response.

Definition at line 109 of file net_objc.h.

§ fromCache

- (bool) fromCache
readwriteatomicassign

If true, this response was from a cache and should be ignored for bandwidth estimation.

Definition at line 100 of file net_objc.h.

§ headers

- (NSMutableDictionary<NSString *, NSString *>*) headers
readwriteatomicassign

A map of response headers, if supported by the underlying protocol. All keys should be lowercased. For HTTP/HTTPS, may not be available cross-origin.

Definition at line 94 of file net_objc.h.

§ originalUri

- (NSString*) originalUri
readwriteatomicassign

The original URI passed to the browser for networking. This is before any redirects, but after request filters are executed.

Definition at line 87 of file net_objc.h.

§ timeMs

- (NSNumber*) timeMs
readwriteatomicassign

Optional. The time it took to get the response, in milliseconds. If not given, NetworkingEngine will calculate it using the current time.

Definition at line 106 of file net_objc.h.

§ uri

- (NSString*) uri
readwriteatomicassign

The URI which was loaded. Request filters and server redirects can cause this to be different from the original request URIs.

Definition at line 81 of file net_objc.h.


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