Unirest\Request::delete PHP Метод

delete() публичный статический Метод

Send DELETE request to a URL
public static delete ( string $url, array $headers = [], mixed $body = null, string $username = null, string $password = null ) : unirest\Response
$url string URL to send the DELETE request to
$headers array additional headers to send
$body mixed DELETE body data
$username string Basic Authentication username (deprecated)
$password string Basic Authentication password (deprecated)
Результат unirest\Response
    public static function delete($url, $headers = array(), $body = null, $username = null, $password = null)
    {
        return self::send(Method::DELETE, $url, $body, $headers, $username, $password);
    }

Usage Example

Пример #1
0
 public static function deleteAll($headers = null)
 {
     if (!$headers) {
         $headers = Rapid::getAuthHeader();
     }
     $response = Request::delete(Rapid::getUrl(self::$route), $headers);
     return Response::make($response);
 }
All Usage Examples Of Unirest\Request::delete