Response

class OC\Http\Client\Response
Class Response
Source:lib/private/Http/Client/Response.php#38
Implements:OCP\Http\Client\IResponse

Properties

Methods

public OC\Http\Client\Response::__construct($response, $stream=false)
Source:

lib/private/Http/Client/Response.php#51

Parameters:
  • $response (Psr\Http\Message\ResponseInterface)
  • $stream (bool)
public OC\Http\Client\Response::getBody()
Source:lib/private/Http/Client/Response.php#59
Returns:string | resource
public OC\Http\Client\Response::getStatusCode()
Source:lib/private/Http/Client/Response.php#68
Returns:int
public OC\Http\Client\Response::getHeader($key)
Source:

lib/private/Http/Client/Response.php#76

Parameters:
  • $key (string)
Returns:

string

public OC\Http\Client\Response::getHeaders()
Source:lib/private/Http/Client/Response.php#89
Returns:array