Add option of setting cookies from RESTful response.