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
Метод класса: Session{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Session = new Session(); $Session->patch( $url, $headers, $data, $options );
- $url(обязательный)
- .
- $headers(обязательный)
- .
- $data
- .
По умолчанию:[] - $options
- .
По умолчанию:[]
Код Session::patch() Session::patch WP 7.1.5
public function patch($url, $headers, $data = [], $options = []) {
return $this->request($url, $headers, $data, Requests::PATCH, $options);
}