Function warp_range::get_range_with_cb
source · [−]pub async fn get_range_with_cb(
range_header: Option<String>,
file: &str,
content_type: &str,
progress: fn(size: u64)
) -> Result<impl Reply, Rejection>
Expand description
This function retrives the range of bytes requested by the web client. You can define a callback function for logging purpose or media access control