Add set cookie support. Introduces a CookieOption struct.