You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
743 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Apewer.Web
  5. {
  6. /// <summary></summary>
  7. [Serializable]
  8. public sealed class ApiMime
  9. {
  10. /// <summary></summary>
  11. public string Extension { get; set; }
  12. /// <summary></summary>
  13. public string ContentType { get; set; }
  14. /// <summary>缓存过期时间,单位为秒,默认值 0 为不缓存(立即过期)。</summary>
  15. public int Expires { get; set; }
  16. /// <summary></summary>
  17. public ApiMime() { }
  18. internal ApiMime(string ext, string type, int expires)
  19. {
  20. Extension = ext;
  21. ContentType = type;
  22. Expires = expires;
  23. }
  24. }
  25. }