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: ::prost::alloc::string::String, 7 #[prost(bytes="vec", optional, tag="3")] 8 pub body: ::core::option::Option<::prost::alloc::vec::Vec<u8>>, 9 #[prost(map="string, string", tag="4")] 10 pub headers: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::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 /// Nested message and enum types in `Request`. 21 pub mod request { 22 #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] 23 #[repr(i32)] 24 pub enum Method { 25 Get = 0, 26 Head = 1, 27 Post = 2, 28 Put = 3, 29 Delete = 4, 30 Connect = 5, 31 Options = 6, 32 Trace = 7, 33 } 34 } 35 #[derive(Clone, PartialEq, ::prost::Message)] 36 pub struct Response { 37 /// If this is present, nothing else is. 38 #[prost(string, optional, tag="1")] 39 pub exception_message: ::core::option::Option<::prost::alloc::string::String>, 40 #[prost(string, optional, tag="2")] 41 pub url: ::core::option::Option<::prost::alloc::string::String>, 42 #[prost(int32, optional, tag="3")] 43 pub status: ::core::option::Option<i32>, 44 #[prost(bytes="vec", optional, tag="4")] 45 pub body: ::core::option::Option<::prost::alloc::vec::Vec<u8>>, 46 #[prost(map="string, string", tag="5")] 47 pub headers: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, 48 } 49