rsiot::components_config::http_server

Function handler_put

Source
pub fn handler_put<TMsg, TError>(
    path: &str,
    body: &str,
    put_endpoints: &HashMap<String, Box<dyn PutEndpoint<TMsg>>>,
    error_unknown_path: fn(_: String) -> TError,
    error_serde_json: fn(_: Error) -> TError,
) -> Result<Option<Message<TMsg>>, TError>
Expand description

Обработка PUT запроса