Pronamic WordPress HTTP

Response

HTTP Response

Tags
link
https://laravel.com/docs/8.x/http-client
author

Remco Tolsma

version
1.0.0
since
1.0.0

Table of Contents

$array  : array<string, mixed>
Remote request response array.
__construct()  : mixed
Construct response array.
array_from_file()  : array<string, mixed>
From file.
body()  : string
Body.
get_array()  : array<string, mixed>
Get array.
json()  : mixed
JSON.
message()  : string
Message.
simplexml()  : SimpleXMLElement
SimpleXML.
status()  : int|string
Status.

Properties

$array

Remote request response array.

private array<string, mixed> $array

Methods

__construct()

Construct response array.

public __construct(array<string, mixed> $array) : mixed
Parameters
$array : array<string, mixed>

WordPress remote request response array.

Return values
mixed

get_array()

Get array.

public get_array() : array<string, mixed>
Return values
array<string, mixed>

json()

JSON.

public json() : mixed
Tags
throws
Exception

Throw exception on empty response.

Return values
mixed

Search results