IHttpResponse.cs 573 B

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