Pronamic WordPress HTTP

Handler

Handler

Tags
author

Remco Tolsma

version
1.0.1
since
1.0.0

Table of Contents

$args  : array<string, mixed>
Arguments.
$parsed_args  : null|array<string, mixed>
Parsed arguments.
$url  : string
URL.
__construct()  : mixed
Construct handler.
__destruct()  : mixed
Destruct.
args()  : array<string, mixed>
Arguments.
http_request_args()  : array<string, mixed>
HTTP request arguments filter.
method()  : string
Method.
url()  : string
URL.

Properties

$args

Arguments.

private array<string, mixed> $args

$parsed_args

Parsed arguments.

private null|array<string, mixed> $parsed_args

Methods

__construct()

Construct handler.

public __construct(string $url[, array<string, mixed> $args = array() ]) : mixed
Parameters
$url : string

URL.

$args : array<string, mixed> = array()

Arguments.

Return values
mixed

args()

Arguments.

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

http_request_args()

HTTP request arguments filter.

public http_request_args(array<string, mixed> $parsed_args) : array<string, mixed>

In version 1.0.0 we removed the filter http_request_args in this filter callback: \remove_filter( 'http_request_args', array( $this, 'http_request_args' ), 1000 ); This resulted in 500 errors if the Query Monitor plugin was activated, probably due to the HTTP log functionality of this plugin. Therefore, we moved the removal of this filter to the __destruct() function, this also ties in well with adding the filter in the __construct() function.

Parameters
$parsed_args : array<string, mixed>

Parsed arguments.

Tags
link
https://github.com/WordPress/WordPress/blob/5.7/wp-includes/class-http.php#L408-L419
link
https://github.com/johnbillion/query-monitor/blob/3.6.8/collectors/http.php
Return values
array<string, mixed>

method()

Method.

public method() : string
Return values
string

url()

URL.

public url() : string
Return values
string

Search results