fn ok_binary(val: Vec<u8>) -> Result<HttpResponse> {
    Ok(HttpResponse::build(StatusCode::OK)
        .content_type("application/octet-stream")
        .body(val))
}
// helper function, success + binary response
helper function, success + binary response
helper function success + binary response
fn ok_binary(val: Vec<u8>) -> Result<HttpResponse> {
    Ok(HttpResponse::build(StatusCode::OK)
        .content_type("application/octet-stream")
        .body(val))
}
fn ok_binary ( val : Vec < u8 > ) -> Result < HttpResponse > { Ok ( HttpResponse :: build ( StatusCode :: OK ) . content_type ( " " ) . body ( val ) ) }
helper function, success + binary response
helper function success + binary response
val
Vec<u8>
val
Vec<u8>