github.com/xraypb/xray-core@v1.6.6/transport/internet/headers/http/config.proto (about)

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