WpOrg\Requests
Session::patch()
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.
Return
null
. Nothing (null).
Usage
$Session = new Session(); $Session->patch( $url, $headers, $data, $options );
- $url (required)
- -
- $headers (required)
- -
- $data **
- -
Default: [] - $options **
- -
Default: []
Session::patch() Session::patch code WP 6.6.2
public function patch($url, $headers, $data = [], $options = []) { return $this->request($url, $headers, $data, Requests::PATCH, $options); }