def METHOD_NAME(self):
    with self.download_lock:
        if self.bytes_downloaded.is_set():
            self.send_error(
                HTTPStatus.TOO_MANY_REQUESTS,
                "A download has already been requested",
            )
            return
        logger.info("Received a GET request!")
        self.send_response(HTTPStatus.OK)
        self.send_header("Content-type", "application/octet-stream")
        self.end_headers()
        logger.info("Sending the bytes to the requester")
        self.wfile.write(self.bytes_to_serve)
        self.bytes_downloaded.set()