2 option go_package = "urlfetch";
6 message URLFetchServiceError {
11 UNSPECIFIED_ERROR = 3;
12 RESPONSE_TOO_LARGE = 4;
13 DEADLINE_EXCEEDED = 5;
14 SSL_CERTIFICATE_ERROR = 6;
17 INTERNAL_TRANSIENT_ERROR = 9;
18 TOO_MANY_REDIRECTS = 10;
20 CONNECTION_ERROR = 12;
24 message URLFetchRequest {
33 required RequestMethod Method = 1;
34 required string Url = 2;
35 repeated group Header = 3 {
36 required string Key = 4;
37 required string Value = 5;
39 optional bytes Payload = 6 [ctype=CORD];
41 optional bool FollowRedirects = 7 [default=true];
43 optional double Deadline = 8;
45 optional bool MustValidateServerCertificate = 9 [default=true];
48 message URLFetchResponse {
49 optional bytes Content = 1;
50 required int32 StatusCode = 2;
51 repeated group Header = 3 {
52 required string Key = 4;
53 required string Value = 5;
55 optional bool ContentWasTruncated = 6 [default=false];
56 optional int64 ExternalBytesSent = 7;
57 optional int64 ExternalBytesReceived = 8;
59 optional string FinalUrl = 9;
61 optional int64 ApiCpuMilliseconds = 10 [default=0];
62 optional int64 ApiBytesSent = 11 [default=0];
63 optional int64 ApiBytesReceived = 12 [default=0];