def set_cookies(self,<EOL>name: str,<EOL>value: str,<EOL>expires: Optional[int]=None,<EOL>domain: Optional[str]=None,<EOL>path: Optional[str]=None,<EOL>secure: bool=False,<EOL>http_only: bool=False,<EOL>same_site: Optional[str]=None) -> None:
cookie: str = value<EOL>if expires:<EOL><INDENT>cookie = "<STR_LIT>".format(cookie, expires)<EOL><DEDENT>if domain:<EOL><INDENT>cookie = "<STR_LIT>".format(cookie, domain)<EOL><DEDENT>if path:<EOL><INDENT>cookie = "<STR_LIT>".format(cookie, path)<EOL><DEDENT>if secure:<EOL><INDENT>cookie = "<STR_LIT>".format(cookie)<EOL><DEDENT>if http_only:<EOL><INDENT>cookie = "<STR_LIT>".format(cookie)<EOL><DEDENT>if same_site:<EOL><INDENT>cookie = "<STR_LIT>".format(cookie, same_site)<EOL><DEDENT>self.cookies[name] = cookie<EOL>
:param name: cookies name
:param value: cookies value
:param expires: number of seconds until the cookie expires
:param domain: specifies those hosts to which the cookie will be sent
:param path: indicates a URL path that must exist in the requested resource before sending the Cookie header
:param secure: a secure cookie will only be sent to the server when a request is made using SSL and the HTTPS protocol
:param http_only:
:param same_site:
:return: