Requests_Session::patch()
Send a PATCH request
Note: Unlike {@see post} and {@see put}, $headers is required, as the specification recommends that should send an ETag
Метод класса: Requests_Session{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$Requests_Session = new Requests_Session(); $Requests_Session->patch( $url, $headers, $data, $options );
- $url (обязательный)
- -
- $headers (обязательный)
- -
- $data **
- -
По умолчанию: array() - $options **
- -
По умолчанию: array()
Код Requests_Session::patch() Requests Session::patch WP 6.1.1
public function patch($url, $headers, $data = array(), $options = array()) { return $this->request($url, $headers, $data, Requests::PATCH, $options); }