Implement setting cookies and headers in HTTP responses.