@param string $name

@return $this|HttpTrait|static
559394
public function removeHeader(string $name) : self
    {
        if (!isset($this->headers[$name])) {
            return $this;
        }

        unset($this->headers[$name]);

        return $this;
    }
39992
public function header(string $name, $value): HttpRequest
    {
        if (!array_key_exists($name, $this->headers)) {
            $this->headers[$name] = array();
        }
        $this->headers[$name][] = $value;

        return $this;
    }
1361004
public function respondWithRoute($name)
    {
        $route = tap($this->routes->getByName($name))->bind($this->currentRequest);

        return $this->runRoute($this->currentRequest, $route);
    }
13272
public function setName($name)
    {
        $this->validateName($name);

        if (!$this->name) {
            $this->name = $name;
        } elseif ($this->name !== $name) {
            $this->setAliases([$name]);
        }
        return $this;
    }
1161068
protected function makeCurrentDriver($name)
    {
        $this->currentDriver = \App::make($this->getDriver($name), [
            'config' => config('payment.' . $name),
        ]);

        return $this;
    }
287952
public static function instance($name = null)
	{
		if ($name !== null)
		{
			if ( ! array_key_exists($name, static::$_instances))
			{
				return false;
			}

			return static::$_instances[$name];
		}

		if (static::$_instance === null)
		{
			static::$_instance = static::forge();
		}

		return static::$_instance;
	}
321039
public function removeAttr(string $name): self {
        $this->collection()->each(function($node) use($name) {
            if ($node instanceof \DOMElement) {
                $node->removeAttribute($name);
            }
        });

        return $this;
    }
76133
public function removeHypertextRoute($name)
    {
        if (isset($this->hypertextRoutes[$name])) {
            unset($this->hypertextRoutes[$name]);
        }
        return $this;
    }
497700
public function setName($name) {
        $this->name = $name;
        $arg = pathinfo($name, PATHINFO_EXTENSION);
        if (!empty($arg)) {
            $this->extension = $arg;
        }
        return $this;
    }
1354960
public static function duplicate(string $name): self
    {
        $e = sprintf(self::DUPLICATE, $name);

        return new static($e);
    }
430830
public function name($name = null)
    {
        if ($name === null) {
            return $name;
        }
        $this->_name = $name;

        return $this;
    }
1300697
private static function httpClient(string $name = null, bool $strict = false) : HttpClient
    {
        list($container, $config, $return) = DI::detect(__METHOD__, 'httpclient', $name, $strict);

        if ($return) {
            return $return;
        }

        if (is_null($config) && $strict == false) {
            return new HttpClient();
        } elseif (is_callable($config)) {
            $item = $config();
        } elseif (is_string($config)) {
            $item = new HttpClient();
            $item->setBaseUri($config);
        } else {
            $item = new HttpClient();

            if (isset($config['baseUri'])) {
                $item->setBaseUri($config['baseUri']);
            }

            if (isset($config['clientOptions'])) {
                foreach ($config['clientOptions'] as $name => $value) {
                    $item->setClientOption($name, $value);
                }
            }

            if (isset($config['headers'])) {
                foreach ($config['headers'] as $name => $value) {
                    $item->getClient()->setDefaultHeader($name, $value);
                }
            }
        }

        return DI::set(__METHOD__, $container, $item);
    }
1163380
public static function getResource(string $name)
    {
        $resource = static::getInstance($name)->getResource();

        if(RequestContext::exsits() && $resource)
        {
            static::pushResourceToRequestContext($resource);
        }

        return $resource;
    }
608585
public static function getInstance($name = 'default')
    {
        if (isset(static::$instances[$name])) {
            return static::$instances[$name];
        }

        $instance = new static();

        static::$instances[$name] = $instance;

        return $instance;
    }
964420
public function remove($name)
    {
        //argument 1 must be a string
        Argument::i()->test(1, 'string');

        $this->set($name, null, time() - 3600);

        unset($_COOKIE[$name]);

        return $this;
    }
59924
public function get(string $name = null)
    {
        return $this->requestParser->parseInto(
                $this->injector->getInstance(
                        $this->userInputClass,
                        'stubbles.console.input.instance'
                ),
                $name
        );
    }
748031
public function withoutAttribute($name)
    {
        $request             = clone $this;
        $request->attributes = clone $this->attributes;
        $request->attributes->remove($name);

        return $request;
    }