} /** * Sets the response content. * * Valid types are strings, numbers, null, and objects that implement a __toString() method. * * @param mixed $content Content that can be cast to string * * @return $this * * @throws \UnexpectedValueException */ public function setContent($content) { if (null !== $content && !is_string($content) && !is_numeric($content) && !is_callable(array($content, '__toString'))) { throw new \UnexpectedValueException(sprintf('The Response content must be a string or object implementing __toString(), "%s" given.', gettype($content))); } $this->content = (string) $content; return $this; } /** * Gets the current response content. * * @return string Content */ public function getContent() { return $this->content; } /** * Sets the HTTP protocol version (1.0 or 1.1). * * @param string $version The HTTP protocol version * * @return $this
"Object of class Illuminate\Routing\Redirector could not be converted to string"
Key | Value |
REDIRECT_REDIRECT_HTTPS | "on"
|
REDIRECT_REDIRECT_SSL_TLS_SNI | "npn.news"
|
REDIRECT_REDIRECT_STATUS | "200"
|
REDIRECT_HTTPS | "on"
|
REDIRECT_SSL_TLS_SNI | "npn.news"
|
REDIRECT_STATUS | "200"
|
HTTPS | "on"
|
SSL_TLS_SNI | "npn.news"
|
HTTP_ACCEPT | "*/*"
|
HTTP_USER_AGENT | "claudebot"
|
HTTP_HOST | "npn.news"
|
PATH | "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
|
SERVER_SIGNATURE | "<address>Apache/2.4.41 (Ubuntu) Server at npn.news Port 443</address>\n"
|
SERVER_SOFTWARE | "Apache/2.4.41 (Ubuntu)"
|
SERVER_NAME | "npn.news"
|
SERVER_ADDR | "174.138.25.26"
|
SERVER_PORT | "443"
|
REMOTE_ADDR | "35.173.178.60"
|
DOCUMENT_ROOT | "/var/www/public_html"
|
REQUEST_SCHEME | "https"
|
CONTEXT_PREFIX | "" |
CONTEXT_DOCUMENT_ROOT | "/var/www/public_html"
|
SERVER_ADMIN | "webmaster@localhost"
|
SCRIPT_FILENAME | "/var/www/public_html/public/index.php"
|
REMOTE_PORT | "58754"
|
REDIRECT_URL | "/public/ads/npn-news/10"
|
GATEWAY_INTERFACE | "CGI/1.1"
|
SERVER_PROTOCOL | "HTTP/1.1"
|
REQUEST_METHOD | "GET"
|
QUERY_STRING | "" |
REQUEST_URI | "/ads/npn-news/10"
|
SCRIPT_NAME | "/public/index.php"
|
PHP_SELF | "/public/index.php"
|
REQUEST_TIME_FLOAT | 1711670662.899
|
REQUEST_TIME | 1711670662
|