Skip to main content

stream_exercise_answer_files

Function stream_exercise_answer_files 

Source
pub async fn stream_exercise_answer_files(
    pool: Data<PgPool>,
    file_store: Data<dyn FileStore>,
    exercise_id: Uuid,
    content_disposition: String,
    token: AuthorizationToken,
) -> ControllerResult<HttpResponse>
Expand description

Starts the archive download for one exercise.

The status line is committed before the first byte is read from the file store, so an upload that has vanished from it is logged and skipped rather than failing the response.