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.

WebSocketObject.cs 790 B

12345678910111213141516171819202122232425262728293031
  1. using System.Collections.Generic;
  2. namespace Shadowsocks.Interop.V2Ray.Transport
  3. {
  4. public class WebSocketObject
  5. {
  6. /// <summary>
  7. /// Gets or sets whether to use PROXY protocol.
  8. /// </summary>
  9. public bool AcceptProxyProtocol { get; set; }
  10. /// <summary>
  11. /// Gets or sets the HTTP query path.
  12. /// Defaults to "/".
  13. /// </summary>
  14. public string Path { get; set; }
  15. /// <summary>
  16. /// Gets or sets HTTP header key-value pairs.
  17. /// Defaults to empty.
  18. /// </summary>
  19. public Dictionary<string, string> Headers { get; set; }
  20. public WebSocketObject()
  21. {
  22. AcceptProxyProtocol = false;
  23. Path = "/";
  24. Headers = new();
  25. }
  26. }
  27. }