Pronamic WordPress HTTP

Http

HTTP

Tags
link
https://laravel.com/docs/8.x/http-client
link
https://github.com/laravel/framework/blob/8.x/src/Illuminate/Support/Facades/Http.php
author

Remco Tolsma

version
1.0.0
since
1.0.0

Table of Contents

fake()  : void
Fake.
get()  : Response
GET.
head()  : Response
HEAD.
post()  : Response
POST.
request()  : Response
Request.
result()  : Response
Result.

Methods

fake()

Fake.

public static fake(string $url, string $file) : void
Parameters
$url : string

URL.

$file : string

File with HTTP response.

Return values
void

result()

Result.

private static result(array<string|int, string>|WP_Error $result, Handler $handler) : Response
Parameters
$result : array<string|int, string>|WP_Error

Remote request result.

$handler : Handler

Handler.

Tags
throws
Exception

Throw exception on request error.

Return values
Response

Search results