__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <[email protected]> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpClient\Response; use Symfony\Component\HttpClient\Exception\InvalidArgumentException; class JsonMockResponse extends MockResponse { /** * @param mixed $body Any value that `json_encode()` can serialize */ public function __construct(mixed $body = [], array $info = []) { try { $json = json_encode($body, \JSON_THROW_ON_ERROR | \JSON_PRESERVE_ZERO_FRACTION); } catch (\JsonException $e) { throw new InvalidArgumentException('JSON encoding failed: '.$e->getMessage(), $e->getCode(), $e); } $info['response_headers']['content-type'] ??= 'application/json'; parent::__construct($json, $info); } }
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| AmpResponse.php | File | 16.37 KB | 0664 |
|
| AsyncContext.php | File | 5.66 KB | 0664 |
|
| AsyncResponse.php | File | 16.58 KB | 0664 |
|
| CommonResponseTrait.php | File | 4.79 KB | 0664 |
|
| CurlResponse.php | File | 18.28 KB | 0664 |
|
| HttplugPromise.php | File | 1.79 KB | 0664 |
|
| JsonMockResponse.php | File | 957 B | 0664 |
|
| MockResponse.php | File | 11.47 KB | 0664 |
|
| NativeResponse.php | File | 13.46 KB | 0664 |
|
| ResponseStream.php | File | 1.13 KB | 0664 |
|
| StreamWrapper.php | File | 9.14 KB | 0664 |
|
| StreamableInterface.php | File | 1.13 KB | 0664 |
|
| TraceableResponse.php | File | 6.58 KB | 0664 |
|
| TransportResponseTrait.php | File | 11.19 KB | 0664 |
|