Skip to main content

status_handler

Function status_handler 

Source
pub async fn status_handler<Repo: Repository + Send + Sync + 'static, Search: SearchEngine + Send + Sync + 'static, Terminology: FHIRTerminology + Send + Sync + 'static>(
    __arg0: Extension<Arc<User>>,
    __arg1: Path<JobPath>,
    __arg2: State<Arc<ServerState<Repo, Search, Terminology>>>,
) -> Result<Response, OperationOutcomeError>
Expand description

GET of the status URL.

  • queued or running: 202 Accepted, X-Progress, Retry-After, no body;
  • completed: 200 OK and the result, in the content type its handler chose, with Expires saying how long it stays available;
  • failed: the OperationOutcome the handler produced, with the status code it implies;
  • cancelled, or unknown: 404 Not Found.