AppserverIo\Appserver\ServletEngine\Http\Request::addCookie PHP Method

addCookie() public method

Adds the passed cookie to this request.
public addCookie ( AppserverIo\Psr\HttpMessage\CookieInterface $cookie ) : void
$cookie AppserverIo\Psr\HttpMessage\CookieInterface The cookie to add
return void
    public function addCookie(CookieInterface $cookie)
    {
        $this->getHttpRequest()->addCookie($cookie);
    }