<?php
Swoole\Http\Response->cookie(string $key, string $value = '', int $expire = 0 , string $path = '/', string $domain = '', bool $secure = false , bool $httponly = false, string $samesite = '')
The key of cookie
The value of cookie
The expire time of cookie
The path of cookie
The domain of cookie
If the cookie is secure
If the cookie is HTTP only
Set the samesite value
Set the cookie sending to HTTP client.
This method must be called before the
$response->end
method.