$this->request->headers() array (4)
Accept => CodeIgniter\HTTP\Header (2)
$this->request->headers()['Accept']
  • Properties (2)
  • Available methods (9)
  • protected name -> string (6) "Accept"
    protected value -> string (3) "*/*"
  • public __construct(string $name, $value = null) Header constructor. name is mandatory, if a value is provided, it will be set.
    new \CodeIgniter\HTTP\Header(string $name, $value = null)
    /**
    * Header constructor. name is mandatory, if a value is provided, it will be set.
    *
    * @param array|string|null $value
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:41
    public getName(): string Returns the name of the header, in the same case it was set.
    $this->request->headers()['Accept']->getName()
    /**
    * Returns the name of the header, in the same case it was set.
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:50
    public getValue(): array|string Gets the raw value of the header. This may return either a string of an array, d...
    $this->request->headers()['Accept']->getValue()
    /**
    * Gets the raw value of the header. This may return either a string
    * of an array, depending on whether the header has multiple values or not.
    *
    * @return array|string
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:61
    public setName(string $name): $this Sets the name of the header, overwriting any previous value.
    $this->request->headers()['Accept']->setName(string $name)
    /**
    * Sets the name of the header, overwriting any previous value.
    *
    * @return $this
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:71
    public setValue($value = null): $this Sets the value of the header, overwriting any previous value(s).
    $this->request->headers()['Accept']->setValue($value = null)
    /**
    * Sets the value of the header, overwriting any previous value(s).
    *
    * @param array|string|null $value
    *
    * @return $this
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:85
    public appendValue($value = null): $this Appends a value to the list of values for this header. If the header is a single...
    $this->request->headers()['Accept']->appendValue($value = null)
    /**
    * Appends a value to the list of values for this header. If the
    * header is a single value string, it will be converted to an array.
    *
    * @param array|string|null $value
    *
    * @return $this
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:100
    public prependValue($value = null): $this Prepends a value to the list of values for this header. If the header is a singl...
    $this->request->headers()['Accept']->prependValue($value = null)
    /**
    * Prepends a value to the list of values for this header. If the
    * header is a single value string, it will be converted to an array.
    *
    * @param array|string|null $value
    *
    * @return $this
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:125
    public getValueLine(): string Retrieves a comma-separated string of the values for a single header.
    $this->request->headers()['Accept']->getValueLine()
    /**
    * Retrieves a comma-separated string of the values for a single header.
    *
    * NOTE: Not all header values may be appropriately represented using
    * comma concatenation. For such headers, use getHeader() instead
    * and supply your own delimiter when concatenating.
    *
    * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:149
    public __toString(): string Returns a representation of the entire header string, including the header name ...
    (string) $this->request->headers()['Accept']
    /**
    * Returns a representation of the entire header string, including
    * the header name and all values converted to the proper format.
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:178
User-Agent => CodeIgniter\HTTP\Header (2)
$this->request->headers()['User-Agent']
  • Properties (2)
  • Available methods (9)
  • protected name -> string (10) "User-Agent"
    protected value -> string (103) "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0...
    Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
    
  • public __construct(string $name, $value = null) Header constructor. name is mandatory, if a value is provided, it will be set.
    new \CodeIgniter\HTTP\Header(string $name, $value = null)
    /**
    * Header constructor. name is mandatory, if a value is provided, it will be set.
    *
    * @param array|string|null $value
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:41
    public getName(): string Returns the name of the header, in the same case it was set.
    $this->request->headers()['User-Agent']->getName()
    /**
    * Returns the name of the header, in the same case it was set.
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:50
    public getValue(): array|string Gets the raw value of the header. This may return either a string of an array, d...
    $this->request->headers()['User-Agent']->getValue()
    /**
    * Gets the raw value of the header. This may return either a string
    * of an array, depending on whether the header has multiple values or not.
    *
    * @return array|string
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:61
    public setName(string $name): $this Sets the name of the header, overwriting any previous value.
    $this->request->headers()['User-Agent']->setName(string $name)
    /**
    * Sets the name of the header, overwriting any previous value.
    *
    * @return $this
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:71
    public setValue($value = null): $this Sets the value of the header, overwriting any previous value(s).
    $this->request->headers()['User-Agent']->setValue($value = null)
    /**
    * Sets the value of the header, overwriting any previous value(s).
    *
    * @param array|string|null $value
    *
    * @return $this
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:85
    public appendValue($value = null): $this Appends a value to the list of values for this header. If the header is a single...
    $this->request->headers()['User-Agent']->appendValue($value = null)
    /**
    * Appends a value to the list of values for this header. If the
    * header is a single value string, it will be converted to an array.
    *
    * @param array|string|null $value
    *
    * @return $this
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:100
    public prependValue($value = null): $this Prepends a value to the list of values for this header. If the header is a singl...
    $this->request->headers()['User-Agent']->prependValue($value = null)
    /**
    * Prepends a value to the list of values for this header. If the
    * header is a single value string, it will be converted to an array.
    *
    * @param array|string|null $value
    *
    * @return $this
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:125
    public getValueLine(): string Retrieves a comma-separated string of the values for a single header.
    $this->request->headers()['User-Agent']->getValueLine()
    /**
    * Retrieves a comma-separated string of the values for a single header.
    *
    * NOTE: Not all header values may be appropriately represented using
    * comma concatenation. For such headers, use getHeader() instead
    * and supply your own delimiter when concatenating.
    *
    * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:149
    public __toString(): string Returns a representation of the entire header string, including the header name ...
    (string) $this->request->headers()['User-Agent']
    /**
    * Returns a representation of the entire header string, including
    * the header name and all values converted to the proper format.
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:178
Accept-Encoding => CodeIgniter\HTTP\Header (2)
$this->request->headers()['Accept-Encoding']
  • Properties (2)
  • Available methods (9)
  • protected name -> string (15) "Accept-Encoding"
    protected value -> string (23) "gzip, br, zstd, deflate"
  • public __construct(string $name, $value = null) Header constructor. name is mandatory, if a value is provided, it will be set.
    new \CodeIgniter\HTTP\Header(string $name, $value = null)
    /**
    * Header constructor. name is mandatory, if a value is provided, it will be set.
    *
    * @param array|string|null $value
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:41
    public getName(): string Returns the name of the header, in the same case it was set.
    $this->request->headers()['Accept-Encoding']->getName()
    /**
    * Returns the name of the header, in the same case it was set.
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:50
    public getValue(): array|string Gets the raw value of the header. This may return either a string of an array, d...
    $this->request->headers()['Accept-Encoding']->getValue()
    /**
    * Gets the raw value of the header. This may return either a string
    * of an array, depending on whether the header has multiple values or not.
    *
    * @return array|string
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:61
    public setName(string $name): $this Sets the name of the header, overwriting any previous value.
    $this->request->headers()['Accept-Encoding']->setName(string $name)
    /**
    * Sets the name of the header, overwriting any previous value.
    *
    * @return $this
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:71
    public setValue($value = null): $this Sets the value of the header, overwriting any previous value(s).
    $this->request->headers()['Accept-Encoding']->setValue($value = null)
    /**
    * Sets the value of the header, overwriting any previous value(s).
    *
    * @param array|string|null $value
    *
    * @return $this
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:85
    public appendValue($value = null): $this Appends a value to the list of values for this header. If the header is a single...
    $this->request->headers()['Accept-Encoding']->appendValue($value = null)
    /**
    * Appends a value to the list of values for this header. If the
    * header is a single value string, it will be converted to an array.
    *
    * @param array|string|null $value
    *
    * @return $this
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:100
    public prependValue($value = null): $this Prepends a value to the list of values for this header. If the header is a singl...
    $this->request->headers()['Accept-Encoding']->prependValue($value = null)
    /**
    * Prepends a value to the list of values for this header. If the
    * header is a single value string, it will be converted to an array.
    *
    * @param array|string|null $value
    *
    * @return $this
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:125
    public getValueLine(): string Retrieves a comma-separated string of the values for a single header.
    $this->request->headers()['Accept-Encoding']->getValueLine()
    /**
    * Retrieves a comma-separated string of the values for a single header.
    *
    * NOTE: Not all header values may be appropriately represented using
    * comma concatenation. For such headers, use getHeader() instead
    * and supply your own delimiter when concatenating.
    *
    * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:149
    public __toString(): string Returns a representation of the entire header string, including the header name ...
    (string) $this->request->headers()['Accept-Encoding']
    /**
    * Returns a representation of the entire header string, including
    * the header name and all values converted to the proper format.
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:178
Host => CodeIgniter\HTTP\Header (2)
$this->request->headers()['Host']
  • Properties (2)
  • Available methods (9)
  • protected name -> string (4) "Host"
    protected value -> string (19) "sample4.cikorea.net"
  • public __construct(string $name, $value = null) Header constructor. name is mandatory, if a value is provided, it will be set.
    new \CodeIgniter\HTTP\Header(string $name, $value = null)
    /**
    * Header constructor. name is mandatory, if a value is provided, it will be set.
    *
    * @param array|string|null $value
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:41
    public getName(): string Returns the name of the header, in the same case it was set.
    $this->request->headers()['Host']->getName()
    /**
    * Returns the name of the header, in the same case it was set.
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:50
    public getValue(): array|string Gets the raw value of the header. This may return either a string of an array, d...
    $this->request->headers()['Host']->getValue()
    /**
    * Gets the raw value of the header. This may return either a string
    * of an array, depending on whether the header has multiple values or not.
    *
    * @return array|string
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:61
    public setName(string $name): $this Sets the name of the header, overwriting any previous value.
    $this->request->headers()['Host']->setName(string $name)
    /**
    * Sets the name of the header, overwriting any previous value.
    *
    * @return $this
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:71
    public setValue($value = null): $this Sets the value of the header, overwriting any previous value(s).
    $this->request->headers()['Host']->setValue($value = null)
    /**
    * Sets the value of the header, overwriting any previous value(s).
    *
    * @param array|string|null $value
    *
    * @return $this
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:85
    public appendValue($value = null): $this Appends a value to the list of values for this header. If the header is a single...
    $this->request->headers()['Host']->appendValue($value = null)
    /**
    * Appends a value to the list of values for this header. If the
    * header is a single value string, it will be converted to an array.
    *
    * @param array|string|null $value
    *
    * @return $this
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:100
    public prependValue($value = null): $this Prepends a value to the list of values for this header. If the header is a singl...
    $this->request->headers()['Host']->prependValue($value = null)
    /**
    * Prepends a value to the list of values for this header. If the
    * header is a single value string, it will be converted to an array.
    *
    * @param array|string|null $value
    *
    * @return $this
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:125
    public getValueLine(): string Retrieves a comma-separated string of the values for a single header.
    $this->request->headers()['Host']->getValueLine()
    /**
    * Retrieves a comma-separated string of the values for a single header.
    *
    * NOTE: Not all header values may be appropriately represented using
    * comma concatenation. For such headers, use getHeader() instead
    * and supply your own delimiter when concatenating.
    *
    * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:149
    public __toString(): string Returns a representation of the entire header string, including the header name ...
    (string) $this->request->headers()['Host']
    /**
    * Returns a representation of the entire header string, including
    * the header name and all values converted to the proper format.
    */
    
    Defined in .../codeigniter4/framework/system/HTTP/Header.php:178