config.pb.go 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646
  1. package http
  2. import (
  3. proto "github.com/golang/protobuf/proto"
  4. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  5. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  6. reflect "reflect"
  7. sync "sync"
  8. )
  9. const (
  10. // Verify that this generated code is sufficiently up-to-date.
  11. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  12. // Verify that runtime/protoimpl is sufficiently up-to-date.
  13. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  14. )
  15. // This is a compile-time assertion that a sufficiently up-to-date version
  16. // of the legacy proto package is being used.
  17. const _ = proto.ProtoPackageIsVersion4
  18. type Header struct {
  19. state protoimpl.MessageState
  20. sizeCache protoimpl.SizeCache
  21. unknownFields protoimpl.UnknownFields
  22. // "Accept", "Cookie", etc
  23. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  24. // Each entry must be valid in one piece. Random entry will be chosen if multiple entries present.
  25. Value []string `protobuf:"bytes,2,rep,name=value,proto3" json:"value,omitempty"`
  26. }
  27. func (x *Header) Reset() {
  28. *x = Header{}
  29. if protoimpl.UnsafeEnabled {
  30. mi := &file_v2ray_com_core_transport_internet_headers_http_config_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. }
  35. func (x *Header) String() string {
  36. return protoimpl.X.MessageStringOf(x)
  37. }
  38. func (*Header) ProtoMessage() {}
  39. func (x *Header) ProtoReflect() protoreflect.Message {
  40. mi := &file_v2ray_com_core_transport_internet_headers_http_config_proto_msgTypes[0]
  41. if protoimpl.UnsafeEnabled && x != nil {
  42. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  43. if ms.LoadMessageInfo() == nil {
  44. ms.StoreMessageInfo(mi)
  45. }
  46. return ms
  47. }
  48. return mi.MessageOf(x)
  49. }
  50. // Deprecated: Use Header.ProtoReflect.Descriptor instead.
  51. func (*Header) Descriptor() ([]byte, []int) {
  52. return file_v2ray_com_core_transport_internet_headers_http_config_proto_rawDescGZIP(), []int{0}
  53. }
  54. func (x *Header) GetName() string {
  55. if x != nil {
  56. return x.Name
  57. }
  58. return ""
  59. }
  60. func (x *Header) GetValue() []string {
  61. if x != nil {
  62. return x.Value
  63. }
  64. return nil
  65. }
  66. // HTTP version. Default value "1.1".
  67. type Version struct {
  68. state protoimpl.MessageState
  69. sizeCache protoimpl.SizeCache
  70. unknownFields protoimpl.UnknownFields
  71. Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
  72. }
  73. func (x *Version) Reset() {
  74. *x = Version{}
  75. if protoimpl.UnsafeEnabled {
  76. mi := &file_v2ray_com_core_transport_internet_headers_http_config_proto_msgTypes[1]
  77. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  78. ms.StoreMessageInfo(mi)
  79. }
  80. }
  81. func (x *Version) String() string {
  82. return protoimpl.X.MessageStringOf(x)
  83. }
  84. func (*Version) ProtoMessage() {}
  85. func (x *Version) ProtoReflect() protoreflect.Message {
  86. mi := &file_v2ray_com_core_transport_internet_headers_http_config_proto_msgTypes[1]
  87. if protoimpl.UnsafeEnabled && x != nil {
  88. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  89. if ms.LoadMessageInfo() == nil {
  90. ms.StoreMessageInfo(mi)
  91. }
  92. return ms
  93. }
  94. return mi.MessageOf(x)
  95. }
  96. // Deprecated: Use Version.ProtoReflect.Descriptor instead.
  97. func (*Version) Descriptor() ([]byte, []int) {
  98. return file_v2ray_com_core_transport_internet_headers_http_config_proto_rawDescGZIP(), []int{1}
  99. }
  100. func (x *Version) GetValue() string {
  101. if x != nil {
  102. return x.Value
  103. }
  104. return ""
  105. }
  106. // HTTP method. Default value "GET".
  107. type Method struct {
  108. state protoimpl.MessageState
  109. sizeCache protoimpl.SizeCache
  110. unknownFields protoimpl.UnknownFields
  111. Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
  112. }
  113. func (x *Method) Reset() {
  114. *x = Method{}
  115. if protoimpl.UnsafeEnabled {
  116. mi := &file_v2ray_com_core_transport_internet_headers_http_config_proto_msgTypes[2]
  117. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  118. ms.StoreMessageInfo(mi)
  119. }
  120. }
  121. func (x *Method) String() string {
  122. return protoimpl.X.MessageStringOf(x)
  123. }
  124. func (*Method) ProtoMessage() {}
  125. func (x *Method) ProtoReflect() protoreflect.Message {
  126. mi := &file_v2ray_com_core_transport_internet_headers_http_config_proto_msgTypes[2]
  127. if protoimpl.UnsafeEnabled && x != nil {
  128. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  129. if ms.LoadMessageInfo() == nil {
  130. ms.StoreMessageInfo(mi)
  131. }
  132. return ms
  133. }
  134. return mi.MessageOf(x)
  135. }
  136. // Deprecated: Use Method.ProtoReflect.Descriptor instead.
  137. func (*Method) Descriptor() ([]byte, []int) {
  138. return file_v2ray_com_core_transport_internet_headers_http_config_proto_rawDescGZIP(), []int{2}
  139. }
  140. func (x *Method) GetValue() string {
  141. if x != nil {
  142. return x.Value
  143. }
  144. return ""
  145. }
  146. type RequestConfig struct {
  147. state protoimpl.MessageState
  148. sizeCache protoimpl.SizeCache
  149. unknownFields protoimpl.UnknownFields
  150. // Full HTTP version like "1.1".
  151. Version *Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
  152. // GET, POST, CONNECT etc
  153. Method *Method `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
  154. // URI like "/login.php"
  155. Uri []string `protobuf:"bytes,3,rep,name=uri,proto3" json:"uri,omitempty"`
  156. Header []*Header `protobuf:"bytes,4,rep,name=header,proto3" json:"header,omitempty"`
  157. }
  158. func (x *RequestConfig) Reset() {
  159. *x = RequestConfig{}
  160. if protoimpl.UnsafeEnabled {
  161. mi := &file_v2ray_com_core_transport_internet_headers_http_config_proto_msgTypes[3]
  162. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  163. ms.StoreMessageInfo(mi)
  164. }
  165. }
  166. func (x *RequestConfig) String() string {
  167. return protoimpl.X.MessageStringOf(x)
  168. }
  169. func (*RequestConfig) ProtoMessage() {}
  170. func (x *RequestConfig) ProtoReflect() protoreflect.Message {
  171. mi := &file_v2ray_com_core_transport_internet_headers_http_config_proto_msgTypes[3]
  172. if protoimpl.UnsafeEnabled && x != nil {
  173. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  174. if ms.LoadMessageInfo() == nil {
  175. ms.StoreMessageInfo(mi)
  176. }
  177. return ms
  178. }
  179. return mi.MessageOf(x)
  180. }
  181. // Deprecated: Use RequestConfig.ProtoReflect.Descriptor instead.
  182. func (*RequestConfig) Descriptor() ([]byte, []int) {
  183. return file_v2ray_com_core_transport_internet_headers_http_config_proto_rawDescGZIP(), []int{3}
  184. }
  185. func (x *RequestConfig) GetVersion() *Version {
  186. if x != nil {
  187. return x.Version
  188. }
  189. return nil
  190. }
  191. func (x *RequestConfig) GetMethod() *Method {
  192. if x != nil {
  193. return x.Method
  194. }
  195. return nil
  196. }
  197. func (x *RequestConfig) GetUri() []string {
  198. if x != nil {
  199. return x.Uri
  200. }
  201. return nil
  202. }
  203. func (x *RequestConfig) GetHeader() []*Header {
  204. if x != nil {
  205. return x.Header
  206. }
  207. return nil
  208. }
  209. type Status struct {
  210. state protoimpl.MessageState
  211. sizeCache protoimpl.SizeCache
  212. unknownFields protoimpl.UnknownFields
  213. // Status code. Default "200".
  214. Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
  215. // Statue reason. Default "OK".
  216. Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
  217. }
  218. func (x *Status) Reset() {
  219. *x = Status{}
  220. if protoimpl.UnsafeEnabled {
  221. mi := &file_v2ray_com_core_transport_internet_headers_http_config_proto_msgTypes[4]
  222. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  223. ms.StoreMessageInfo(mi)
  224. }
  225. }
  226. func (x *Status) String() string {
  227. return protoimpl.X.MessageStringOf(x)
  228. }
  229. func (*Status) ProtoMessage() {}
  230. func (x *Status) ProtoReflect() protoreflect.Message {
  231. mi := &file_v2ray_com_core_transport_internet_headers_http_config_proto_msgTypes[4]
  232. if protoimpl.UnsafeEnabled && x != nil {
  233. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  234. if ms.LoadMessageInfo() == nil {
  235. ms.StoreMessageInfo(mi)
  236. }
  237. return ms
  238. }
  239. return mi.MessageOf(x)
  240. }
  241. // Deprecated: Use Status.ProtoReflect.Descriptor instead.
  242. func (*Status) Descriptor() ([]byte, []int) {
  243. return file_v2ray_com_core_transport_internet_headers_http_config_proto_rawDescGZIP(), []int{4}
  244. }
  245. func (x *Status) GetCode() string {
  246. if x != nil {
  247. return x.Code
  248. }
  249. return ""
  250. }
  251. func (x *Status) GetReason() string {
  252. if x != nil {
  253. return x.Reason
  254. }
  255. return ""
  256. }
  257. type ResponseConfig struct {
  258. state protoimpl.MessageState
  259. sizeCache protoimpl.SizeCache
  260. unknownFields protoimpl.UnknownFields
  261. Version *Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
  262. Status *Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
  263. Header []*Header `protobuf:"bytes,3,rep,name=header,proto3" json:"header,omitempty"`
  264. }
  265. func (x *ResponseConfig) Reset() {
  266. *x = ResponseConfig{}
  267. if protoimpl.UnsafeEnabled {
  268. mi := &file_v2ray_com_core_transport_internet_headers_http_config_proto_msgTypes[5]
  269. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  270. ms.StoreMessageInfo(mi)
  271. }
  272. }
  273. func (x *ResponseConfig) String() string {
  274. return protoimpl.X.MessageStringOf(x)
  275. }
  276. func (*ResponseConfig) ProtoMessage() {}
  277. func (x *ResponseConfig) ProtoReflect() protoreflect.Message {
  278. mi := &file_v2ray_com_core_transport_internet_headers_http_config_proto_msgTypes[5]
  279. if protoimpl.UnsafeEnabled && x != nil {
  280. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  281. if ms.LoadMessageInfo() == nil {
  282. ms.StoreMessageInfo(mi)
  283. }
  284. return ms
  285. }
  286. return mi.MessageOf(x)
  287. }
  288. // Deprecated: Use ResponseConfig.ProtoReflect.Descriptor instead.
  289. func (*ResponseConfig) Descriptor() ([]byte, []int) {
  290. return file_v2ray_com_core_transport_internet_headers_http_config_proto_rawDescGZIP(), []int{5}
  291. }
  292. func (x *ResponseConfig) GetVersion() *Version {
  293. if x != nil {
  294. return x.Version
  295. }
  296. return nil
  297. }
  298. func (x *ResponseConfig) GetStatus() *Status {
  299. if x != nil {
  300. return x.Status
  301. }
  302. return nil
  303. }
  304. func (x *ResponseConfig) GetHeader() []*Header {
  305. if x != nil {
  306. return x.Header
  307. }
  308. return nil
  309. }
  310. type Config struct {
  311. state protoimpl.MessageState
  312. sizeCache protoimpl.SizeCache
  313. unknownFields protoimpl.UnknownFields
  314. // Settings for authenticating requests. If not set, client side will not send authenication header, and server side will bypass authentication.
  315. Request *RequestConfig `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
  316. // Settings for authenticating responses. If not set, client side will bypass authentication, and server side will not send authentication header.
  317. Response *ResponseConfig `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"`
  318. }
  319. func (x *Config) Reset() {
  320. *x = Config{}
  321. if protoimpl.UnsafeEnabled {
  322. mi := &file_v2ray_com_core_transport_internet_headers_http_config_proto_msgTypes[6]
  323. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  324. ms.StoreMessageInfo(mi)
  325. }
  326. }
  327. func (x *Config) String() string {
  328. return protoimpl.X.MessageStringOf(x)
  329. }
  330. func (*Config) ProtoMessage() {}
  331. func (x *Config) ProtoReflect() protoreflect.Message {
  332. mi := &file_v2ray_com_core_transport_internet_headers_http_config_proto_msgTypes[6]
  333. if protoimpl.UnsafeEnabled && x != nil {
  334. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  335. if ms.LoadMessageInfo() == nil {
  336. ms.StoreMessageInfo(mi)
  337. }
  338. return ms
  339. }
  340. return mi.MessageOf(x)
  341. }
  342. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  343. func (*Config) Descriptor() ([]byte, []int) {
  344. return file_v2ray_com_core_transport_internet_headers_http_config_proto_rawDescGZIP(), []int{6}
  345. }
  346. func (x *Config) GetRequest() *RequestConfig {
  347. if x != nil {
  348. return x.Request
  349. }
  350. return nil
  351. }
  352. func (x *Config) GetResponse() *ResponseConfig {
  353. if x != nil {
  354. return x.Response
  355. }
  356. return nil
  357. }
  358. var File_v2ray_com_core_transport_internet_headers_http_config_proto protoreflect.FileDescriptor
  359. var file_v2ray_com_core_transport_internet_headers_http_config_proto_rawDesc = []byte{
  360. 0x0a, 0x3b, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65,
  361. 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72,
  362. 0x6e, 0x65, 0x74, 0x2f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x68, 0x74, 0x74, 0x70,
  363. 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x2a, 0x76,
  364. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
  365. 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x65, 0x61,
  366. 0x64, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x22, 0x32, 0x0a, 0x06, 0x48, 0x65, 0x61,
  367. 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
  368. 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
  369. 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x1f, 0x0a,
  370. 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
  371. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x1e,
  372. 0x0a, 0x06, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
  373. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x88,
  374. 0x02, 0x0a, 0x0d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  375. 0x12, 0x4d, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,
  376. 0x0b, 0x32, 0x33, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74,
  377. 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65,
  378. 0x74, 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x56,
  379. 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12,
  380. 0x4a, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
  381. 0x32, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61,
  382. 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e,
  383. 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x4d, 0x65, 0x74,
  384. 0x68, 0x6f, 0x64, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75,
  385. 0x72, 0x69, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x4a, 0x0a,
  386. 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e,
  387. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
  388. 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x65,
  389. 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65,
  390. 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0x34, 0x0a, 0x06, 0x53, 0x74, 0x61,
  391. 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
  392. 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f,
  393. 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22,
  394. 0xf7, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66,
  395. 0x69, 0x67, 0x12, 0x4d, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20,
  396. 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  397. 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72,
  398. 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70,
  399. 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
  400. 0x6e, 0x12, 0x4a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28,
  401. 0x0b, 0x32, 0x32, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74,
  402. 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65,
  403. 0x74, 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x53,
  404. 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x4a, 0x0a,
  405. 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e,
  406. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
  407. 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x65,
  408. 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65,
  409. 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0xb5, 0x01, 0x0a, 0x06, 0x43, 0x6f,
  410. 0x6e, 0x66, 0x69, 0x67, 0x12, 0x53, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18,
  411. 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  412. 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74,
  413. 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74,
  414. 0x74, 0x70, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  415. 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x56, 0x0a, 0x08, 0x72, 0x65, 0x73,
  416. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x76, 0x32,
  417. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
  418. 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x65, 0x61, 0x64,
  419. 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  420. 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  421. 0x65, 0x42, 0x65, 0x0a, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  422. 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e,
  423. 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x68,
  424. 0x74, 0x74, 0x70, 0x50, 0x01, 0x5a, 0x04, 0x68, 0x74, 0x74, 0x70, 0xaa, 0x02, 0x2a, 0x56, 0x32,
  425. 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
  426. 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x48, 0x65, 0x61, 0x64,
  427. 0x65, 0x72, 0x73, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  428. }
  429. var (
  430. file_v2ray_com_core_transport_internet_headers_http_config_proto_rawDescOnce sync.Once
  431. file_v2ray_com_core_transport_internet_headers_http_config_proto_rawDescData = file_v2ray_com_core_transport_internet_headers_http_config_proto_rawDesc
  432. )
  433. func file_v2ray_com_core_transport_internet_headers_http_config_proto_rawDescGZIP() []byte {
  434. file_v2ray_com_core_transport_internet_headers_http_config_proto_rawDescOnce.Do(func() {
  435. file_v2ray_com_core_transport_internet_headers_http_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_v2ray_com_core_transport_internet_headers_http_config_proto_rawDescData)
  436. })
  437. return file_v2ray_com_core_transport_internet_headers_http_config_proto_rawDescData
  438. }
  439. var file_v2ray_com_core_transport_internet_headers_http_config_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
  440. var file_v2ray_com_core_transport_internet_headers_http_config_proto_goTypes = []interface{}{
  441. (*Header)(nil), // 0: v2ray.core.transport.internet.headers.http.Header
  442. (*Version)(nil), // 1: v2ray.core.transport.internet.headers.http.Version
  443. (*Method)(nil), // 2: v2ray.core.transport.internet.headers.http.Method
  444. (*RequestConfig)(nil), // 3: v2ray.core.transport.internet.headers.http.RequestConfig
  445. (*Status)(nil), // 4: v2ray.core.transport.internet.headers.http.Status
  446. (*ResponseConfig)(nil), // 5: v2ray.core.transport.internet.headers.http.ResponseConfig
  447. (*Config)(nil), // 6: v2ray.core.transport.internet.headers.http.Config
  448. }
  449. var file_v2ray_com_core_transport_internet_headers_http_config_proto_depIdxs = []int32{
  450. 1, // 0: v2ray.core.transport.internet.headers.http.RequestConfig.version:type_name -> v2ray.core.transport.internet.headers.http.Version
  451. 2, // 1: v2ray.core.transport.internet.headers.http.RequestConfig.method:type_name -> v2ray.core.transport.internet.headers.http.Method
  452. 0, // 2: v2ray.core.transport.internet.headers.http.RequestConfig.header:type_name -> v2ray.core.transport.internet.headers.http.Header
  453. 1, // 3: v2ray.core.transport.internet.headers.http.ResponseConfig.version:type_name -> v2ray.core.transport.internet.headers.http.Version
  454. 4, // 4: v2ray.core.transport.internet.headers.http.ResponseConfig.status:type_name -> v2ray.core.transport.internet.headers.http.Status
  455. 0, // 5: v2ray.core.transport.internet.headers.http.ResponseConfig.header:type_name -> v2ray.core.transport.internet.headers.http.Header
  456. 3, // 6: v2ray.core.transport.internet.headers.http.Config.request:type_name -> v2ray.core.transport.internet.headers.http.RequestConfig
  457. 5, // 7: v2ray.core.transport.internet.headers.http.Config.response:type_name -> v2ray.core.transport.internet.headers.http.ResponseConfig
  458. 8, // [8:8] is the sub-list for method output_type
  459. 8, // [8:8] is the sub-list for method input_type
  460. 8, // [8:8] is the sub-list for extension type_name
  461. 8, // [8:8] is the sub-list for extension extendee
  462. 0, // [0:8] is the sub-list for field type_name
  463. }
  464. func init() { file_v2ray_com_core_transport_internet_headers_http_config_proto_init() }
  465. func file_v2ray_com_core_transport_internet_headers_http_config_proto_init() {
  466. if File_v2ray_com_core_transport_internet_headers_http_config_proto != nil {
  467. return
  468. }
  469. if !protoimpl.UnsafeEnabled {
  470. file_v2ray_com_core_transport_internet_headers_http_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  471. switch v := v.(*Header); i {
  472. case 0:
  473. return &v.state
  474. case 1:
  475. return &v.sizeCache
  476. case 2:
  477. return &v.unknownFields
  478. default:
  479. return nil
  480. }
  481. }
  482. file_v2ray_com_core_transport_internet_headers_http_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  483. switch v := v.(*Version); i {
  484. case 0:
  485. return &v.state
  486. case 1:
  487. return &v.sizeCache
  488. case 2:
  489. return &v.unknownFields
  490. default:
  491. return nil
  492. }
  493. }
  494. file_v2ray_com_core_transport_internet_headers_http_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  495. switch v := v.(*Method); i {
  496. case 0:
  497. return &v.state
  498. case 1:
  499. return &v.sizeCache
  500. case 2:
  501. return &v.unknownFields
  502. default:
  503. return nil
  504. }
  505. }
  506. file_v2ray_com_core_transport_internet_headers_http_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  507. switch v := v.(*RequestConfig); i {
  508. case 0:
  509. return &v.state
  510. case 1:
  511. return &v.sizeCache
  512. case 2:
  513. return &v.unknownFields
  514. default:
  515. return nil
  516. }
  517. }
  518. file_v2ray_com_core_transport_internet_headers_http_config_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  519. switch v := v.(*Status); i {
  520. case 0:
  521. return &v.state
  522. case 1:
  523. return &v.sizeCache
  524. case 2:
  525. return &v.unknownFields
  526. default:
  527. return nil
  528. }
  529. }
  530. file_v2ray_com_core_transport_internet_headers_http_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  531. switch v := v.(*ResponseConfig); i {
  532. case 0:
  533. return &v.state
  534. case 1:
  535. return &v.sizeCache
  536. case 2:
  537. return &v.unknownFields
  538. default:
  539. return nil
  540. }
  541. }
  542. file_v2ray_com_core_transport_internet_headers_http_config_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  543. switch v := v.(*Config); i {
  544. case 0:
  545. return &v.state
  546. case 1:
  547. return &v.sizeCache
  548. case 2:
  549. return &v.unknownFields
  550. default:
  551. return nil
  552. }
  553. }
  554. }
  555. type x struct{}
  556. out := protoimpl.TypeBuilder{
  557. File: protoimpl.DescBuilder{
  558. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  559. RawDescriptor: file_v2ray_com_core_transport_internet_headers_http_config_proto_rawDesc,
  560. NumEnums: 0,
  561. NumMessages: 7,
  562. NumExtensions: 0,
  563. NumServices: 0,
  564. },
  565. GoTypes: file_v2ray_com_core_transport_internet_headers_http_config_proto_goTypes,
  566. DependencyIndexes: file_v2ray_com_core_transport_internet_headers_http_config_proto_depIdxs,
  567. MessageInfos: file_v2ray_com_core_transport_internet_headers_http_config_proto_msgTypes,
  568. }.Build()
  569. File_v2ray_com_core_transport_internet_headers_http_config_proto = out.File
  570. file_v2ray_com_core_transport_internet_headers_http_config_proto_rawDesc = nil
  571. file_v2ray_com_core_transport_internet_headers_http_config_proto_goTypes = nil
  572. file_v2ray_com_core_transport_internet_headers_http_config_proto_depIdxs = nil
  573. }