We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I'm using sttp with ZIO to download quite large files via an API. It looks something like this:
def downloadRequest(uri: Uri, fileName: String, apiKey: String) = basicRequest .auth.basic("apikey", apiToken) .get(uri) .response(asFile(new File(fileName))) def download(): IO[Exception, File] = for backend <- HttpClientZioBackend() response <- downloadRequest(...).send(backend) file <- ZIO.fromEither(response.body).mapError(e => new Exception(s"Download failed: $e"))) yield file
How would you go about getting updates about how far the download is?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, I'm using sttp with ZIO to download quite large files via an API.
It looks something like this:
How would you go about getting updates about how far the download is?
The text was updated successfully, but these errors were encountered: