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

HttpResponseObject.cs 1.2 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System.Collections.Generic;
  2. namespace Shadowsocks.Interop.V2Ray.Transport.Header.Http
  3. {
  4. public class HttpResponseObject
  5. {
  6. public string Version { get; set; }
  7. public string Status { get; set; }
  8. public string Reason { get; set; }
  9. public Dictionary<string, List<string>> Headers { get; set; }
  10. public HttpResponseObject()
  11. {
  12. Version = "1.1";
  13. Status = "200";
  14. Reason = "OK";
  15. Headers = new()
  16. {
  17. ["Content-Type"] = new()
  18. {
  19. "application/octet-stream",
  20. "video/mpeg",
  21. },
  22. ["Transfer-Encoding"] = new()
  23. {
  24. "chunked",
  25. },
  26. ["Connection"] = new()
  27. {
  28. "keep-alive",
  29. },
  30. ["Pragma"] = new()
  31. {
  32. "no-cache",
  33. },
  34. ["Cache-Control"] = new()
  35. {
  36. "private",
  37. "no-cache",
  38. },
  39. };
  40. }
  41. }
  42. }