IHttpResponse.cs 592 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Net;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace MediaBrowser.Model.Services
  8. {
  9. public interface IHttpResponse : IResponse
  10. {
  11. //ICookies Cookies { get; }
  12. /// <summary>
  13. /// Adds a new Set-Cookie instruction to Response
  14. /// </summary>
  15. /// <param name="cookie"></param>
  16. void SetCookie(Cookie cookie);
  17. /// <summary>
  18. /// Removes all pending Set-Cookie instructions
  19. /// </summary>
  20. void ClearCookies();
  21. }
  22. }