1 #[derive(Clone, PartialEq, ::prost::Message)]
2 pub struct Request {
3     #[prost(enumeration="request::Method", required, tag="1")]
4     pub method: i32,
5     #[prost(string, required, tag="2")]
6     pub url: std::string::String,
7     #[prost(bytes, optional, tag="3")]
8     pub body: ::std::option::Option<std::vec::Vec<u8>>,
9     #[prost(map="string, string", tag="4")]
10     pub headers: ::std::collections::HashMap<std::string::String, std::string::String>,
11     #[prost(bool, required, tag="5")]
12     pub follow_redirects: bool,
13     #[prost(bool, required, tag="6")]
14     pub use_caches: bool,
15     #[prost(int32, required, tag="7")]
16     pub connect_timeout_secs: i32,
17     #[prost(int32, required, tag="8")]
18     pub read_timeout_secs: i32,
19 }
20 pub mod request {
21     #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
22     #[repr(i32)]
23     pub enum Method {
24         Get = 0,
25         Head = 1,
26         Post = 2,
27         Put = 3,
28         Delete = 4,
29         Connect = 5,
30         Options = 6,
31         Trace = 7,
32     }
33 }
34 #[derive(Clone, PartialEq, ::prost::Message)]
35 pub struct Response {
36     /// If this is present, nothing else is.
37     #[prost(string, optional, tag="1")]
38     pub exception_message: ::std::option::Option<std::string::String>,
39     #[prost(string, optional, tag="2")]
40     pub url: ::std::option::Option<std::string::String>,
41     #[prost(int32, optional, tag="3")]
42     pub status: ::std::option::Option<i32>,
43     #[prost(bytes, optional, tag="4")]
44     pub body: ::std::option::Option<std::vec::Vec<u8>>,
45     #[prost(map="string, string", tag="5")]
46     pub headers: ::std::collections::HashMap<std::string::String, std::string::String>,
47 }
48