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: Parameters: - $response (
Psr\Http\Message\ResponseInterface
) - $stream (bool)
- $response (
-
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: Parameters: - $key (string)
Returns: string
-
public
OC\Http\Client\Response::
getHeaders
()¶ Source: lib/private/Http/Client/Response.php#89 Returns: array