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
/// Describes an HTTP request received by the HTTP server capability provider
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
    /// Request method (e.g. GET, PUT, POST, etc)
    #[prost(string, tag="1")]
    pub method: std::string::String,
    /// Full path of the request
    #[prost(string, tag="2")]
    pub path: std::string::String,
    /// Query string of the request
    #[prost(string, tag="3")]
    pub query_string: std::string::String,
    /// Headers    
    #[prost(map="string, string", tag="4")]
    pub header: ::std::collections::HashMap<std::string::String, std::string::String>,
    /// Body of the received request
    #[prost(bytes, tag="5")]
    pub body: std::vec::Vec<u8>,
}
/// Represents an HTTP response that the guest module would like to return in response
/// to a request command
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Response {
    /// HTTP status code of the response 
    #[prost(uint32, tag="1")]
    pub status_code: u32,
    /// Status text
    #[prost(string, tag="2")]
    pub status: std::string::String,
    /// Headers
    #[prost(map="string, string", tag="3")]
    pub header: ::std::collections::HashMap<std::string::String, std::string::String>,
    /// Body of the response
    #[prost(bytes, tag="4")]
    pub body: std::vec::Vec<u8>,
}