-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcoprocess_mini_request_object.proto
58 lines (41 loc) · 1.44 KB
/
coprocess_mini_request_object.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
syntax = "proto3";
import "coprocess_return_overrides.proto";
package coprocess;
option go_package = "/coprocess";
/**
* @hidecollaborationgraph
* @brief Represents a request
*
* Used for middleware calls and contains important fields like headers, parameters, body and URL.
*
* Attribute of an Object
*/
message MiniRequestObject {
/** A read-only field for reading headers injected by previous middleware */
map<string, string> headers = 1;
/** Map of header key values to append to the request */
map<string, string> set_headers = 2;
/** List of header names to be removed from the request */
repeated string delete_headers = 3;
/** Request body */
string body = 4;
/** Request URL */
string url = 5;
/** Read only map of request params */
map<string, string> params = 6;
/** Map of parameter keys and values to add to the request */
map<string, string> add_params = 7;
map<string, string> extended_params = 8;
/** List of parameter keys to be removed from the request */
repeated string delete_params = 9;
/** Override the response for the request, see ReturnOverrides */
ReturnOverrides return_overrides = 10;
/** Request method, eg GET, POST, etc */
string method = 11;
/** The raw unprocessed request URL, including query string and fragments */
string request_uri = 12;
/** The URL scheme, eg http or https */
string scheme = 13;
/** The raw request body */
bytes raw_body = 14;
}