Bug 1735252 [wpt PR 31197] - Regenerate WPT certificates, a=testonly
[gecko.git] / toolkit / components / viaduct / fetch_msg_types.proto
blob7ca651267a28e76949fc9807c4b9c4b3da79cab3
1 syntax = "proto2";
3 // Note: this file name must be unique due to how the iOS megazord works :(
5 package mozilla.appservices.httpconfig.protobuf;
7 option java_package = "mozilla.appservices.httpconfig";
8 option java_outer_classname = "MsgTypes";
9 option swift_prefix = "MsgTypes_";
10 option optimize_for = LITE_RUNTIME;
12 message Request {
13     enum Method {
14         GET = 0;
15         HEAD = 1;
16         POST = 2;
17         PUT = 3;
18         DELETE = 4;
19         CONNECT = 5;
20         OPTIONS = 6;
21         TRACE = 7;
22     }
23     required Method method = 1;
24     required string url = 2;
25     optional bytes body = 3;
26     map<string, string> headers = 4;
27     required bool follow_redirects = 5;
28     required bool use_caches = 6;
29     required int32 connect_timeout_secs = 7;
30     required int32 read_timeout_secs = 8;
33 message Response {
34     // If this is present, nothing else is.
35     optional string exception_message = 1;
36     optional string url = 2;
37     optional int32 status = 3;
38     optional bytes body = 4;
39     map<string, string> headers = 5;