WpOrg\Requests

Session::patchpublicWP 1.0

Send a PATCH request

Note: Unlike \WpOrg\Requests\Session::post() and \WpOrg\Requests\Session::put(), $headers is required, as the specification recommends that should send an ETag

Method of the class: Session{}

No Hooks.

Returns

null. Nothing (null).

Usage

$Session = new Session();
$Session->patch( $url, $headers, $data, $options );
$url(required)
.
$headers(required)
.
$data
.
Default: []
$options
.
Default: []

Session::patch() code WP 6.8.1

public function patch($url, $headers, $data = [], $options = []) {
	return $this->request($url, $headers, $data, Requests::PATCH, $options);
}