Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : fdshops ( 1003)
PHP Version : 8.2.21
Disable Function : NONE
Directory :  /home/fdshops/public_html/vendor/knuckleswtf/scribe/camel/Extraction/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/fdshops/public_html/vendor/knuckleswtf/scribe/camel/Extraction/Response.php
<?php

namespace Knuckles\Camel\Extraction;


use Knuckles\Camel\BaseDTO;

class Response extends BaseDTO
{
    public int $status;

    public ?string $content;

    public array $headers = [];

    public ?string $description;

    public function __construct(array $parameters = [])
    {
        if (is_array($parameters['content'] ?? null)) {
            $parameters['content'] = json_encode($parameters['content'], JSON_UNESCAPED_SLASHES);
        }

        if (isset($parameters['status'])) {
            $parameters['status'] = (int) $parameters['status'];
        }

        $hiddenHeaders = [
            'date',
            'Date',
            'etag',
            'ETag',
            'last-modified',
            'Last-Modified',
            'date',
            'Date',
            'content-length',
            'Content-Length',
            'connection',
            'Connection',
            'x-powered-by',
            'X-Powered-By',
        ];
        if (!empty($parameters['headers'])) {
            foreach ($hiddenHeaders as $headerName) {
                unset($parameters['headers'][$headerName]);
            }
        }

        parent::__construct($parameters);
    }

    public function fullDescription()
    {
        $description = $this->status;
        if ($this->description) $description .= ", {$this->description}";
        return $description;
    }
}

Spamworldpro Mini