class DropboxResponse (View source)

Properties

protected int $httpStatusCode The HTTP status code response
protected array $headers The headers returned
protected string $body The raw body of the response
protected array $decodedBody The decoded body of the response
protected DropboxRequest $request The original request that returned this response

Methods

__construct(DropboxRequest $request, string|null $body = null, int|null $httpStatusCode = null, array $headers = array())

Create a new DropboxResponse instance

getRequest()

Get the Request Request

string
getBody()

Get the Response Body

string
getDecodedBody()

Get the Decoded Body

string
getAccessToken()

Get Access Token for the Request

array
getHeaders()

Get Request Headers

int
getHttpStatusCode()

Get the HTTP Status Code

void
decodeBody()

Decode the Body

Details

at line line 49
__construct(DropboxRequest $request, string|null $body = null, int|null $httpStatusCode = null, array $headers = array())

Create a new DropboxResponse instance

Parameters

DropboxRequest $request
string|null $body
int|null $httpStatusCode
array $headers

at line line 65
DropboxRequest getRequest()

Get the Request Request

Return Value

DropboxRequest

at line line 75
string getBody()

Get the Response Body

Return Value

string

at line line 85
string getDecodedBody()

Get the Decoded Body

Return Value

string

at line line 95
string getAccessToken()

Get Access Token for the Request

Return Value

string

at line line 105
array getHeaders()

Get Request Headers

Return Value

array

at line line 115
int getHttpStatusCode()

Get the HTTP Status Code

Return Value

int

at line line 125
protected void decodeBody()

Decode the Body

Return Value

void