config.proto 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. syntax = "proto3";
  2. package v2ray.core.transport.internet.headers.http;
  3. option csharp_namespace = "V2Ray.Core.Transport.Internet.Headers.Http";
  4. option go_package = "http";
  5. option java_package = "com.v2ray.core.transport.internet.headers.http";
  6. option java_multiple_files = true;
  7. message Header {
  8. // "Accept", "Cookie", etc
  9. string name = 1;
  10. // Each entry must be valid in one piece. Random entry will be chosen if multiple entries present.
  11. repeated string value = 2;
  12. }
  13. // HTTP version. Default value "1.1".
  14. message Version {
  15. string value = 1;
  16. }
  17. // HTTP method. Default value "GET".
  18. message Method {
  19. string value = 1;
  20. }
  21. message RequestConfig {
  22. // Full HTTP version like "1.1".
  23. Version version = 1;
  24. // GET, POST, CONNECT etc
  25. Method method = 2;
  26. // URI like "/login.php"
  27. repeated string uri = 3;
  28. repeated Header header = 4;
  29. }
  30. message Status {
  31. // Status code. Default "200".
  32. string code = 1;
  33. // Statue reason. Default "OK".
  34. string reason = 2;
  35. }
  36. message ResponseConfig {
  37. Version version = 1;
  38. Status status = 2;
  39. repeated Header header = 3;
  40. }
  41. message Config {
  42. // Settings for authenticating requests. If not set, client side will not send authenication header, and server side will bypass authentication.
  43. RequestConfig request = 1;
  44. // Settings for authenticating responses. If not set, client side will bypass authentication, and server side will not send authentication header.
  45. ResponseConfig response = 2;
  46. }