_normalizeHeaderName example


    public function setHeader($key$value = null)
    {
        if ($value !== null) {
            $key = $this->_normalizeHeaderName($key);
            $this->headers->set($key(string) $value);
        } else {
            $this->headers->remove($key);
        }
        $this->setServer('HTTP_' . $key$value);

        return $this;
    }

    /** * Set request headers * * @return Enlight_Controller_Request_RequestTestCase */
Home | Imprint | This part of the site doesn't use cookies.