rsiot/components_config/http_client/
http_param.rs

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
/// Параметры HTTP
#[derive(Clone, Debug)]
pub enum HttpParam {
    /// GET method
    Get {
        /// Endpoint for connections
        endpoint: String,
    },

    /// PUT method
    Put {
        /// Endpoint for connection
        endpoint: String,
        /// Body of request
        body: String,
    },

    /// POST method
    Post {
        /// Endpoint for connection
        endpoint: String,
        /// Body of request
        body: String,
    },
}