add cookie support

only key and value in cookie is supported, filed like domain, path, max-age etc. are not supported