__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
declare(strict_types=1);
namespace Laminas\Diactoros\Response;
use Laminas\Diactoros\Response;
use Laminas\Diactoros\Stream;
/**
* A class representing empty HTTP responses.
*/
class EmptyResponse extends Response
{
/**
* Create an empty response with the given status code.
*
* @param int $status Status code for the response, if any.
* @param array $headers Headers for the response, if any.
*/
public function __construct(int $status = 204, array $headers = [])
{
$body = new Stream('php://temp', 'r');
parent::__construct($body, $status, $headers);
}
/**
* Create an empty response with the given headers.
*
* @param array $headers Headers for the response.
*/
public static function withHeaders(array $headers): EmptyResponse
{
return new static(204, $headers);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| ArraySerializer.php | File | 2.73 KB | 0664 |
|
| EmptyResponse.php | File | 885 B | 0664 |
|
| HtmlResponse.php | File | 2.01 KB | 0664 |
|
| InjectContentTypeTrait.php | File | 742 B | 0664 |
|
| JsonResponse.php | File | 4.38 KB | 0664 |
|
| RedirectResponse.php | File | 1.34 KB | 0664 |
|
| Serializer.php | File | 3.01 KB | 0664 |
|
| TextResponse.php | File | 2.02 KB | 0664 |
|
| XmlResponse.php | File | 2.04 KB | 0664 |
|