Icicle\Http\Message\BasicRequest::withoutHeader PHP Method

withoutHeader() public method

public withoutHeader ( string $name ) : Icicle\Http\Message\Message
$name string
return Icicle\Http\Message\Message
    public function withoutHeader(string $name) : Message
    {
        $new = parent::withoutHeader($name);
        $normalized = strtolower($name);
        if ('host' === $normalized) {
            $new->setHostFromUri();
        } elseif ('cookie' === $normalized) {
            $new->cookies = [];
        }
        return $new;
    }