From 73c77a643a490a1c157d358328e3f363edd1a08f Mon Sep 17 00:00:00 2001 From: Adam Kaczmarek Date: Tue, 14 Jan 2025 11:31:30 +0100 Subject: [PATCH] Implementation of reported remarks + adding example of command output streaming with os-lib support. --- .../sttp/client4/examples/cmdOutputStreamingWithOsLib.scala | 3 +++ .../scala/sttp/client4/examples/downloadFileWitOsLib.scala | 2 +- .../main/scala/sttp/client4/examples/uploadFileWithOsLib.scala | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/src/main/scala/sttp/client4/examples/cmdOutputStreamingWithOsLib.scala b/examples/src/main/scala/sttp/client4/examples/cmdOutputStreamingWithOsLib.scala index 81f0b89c1..d296ca92f 100644 --- a/examples/src/main/scala/sttp/client4/examples/cmdOutputStreamingWithOsLib.scala +++ b/examples/src/main/scala/sttp/client4/examples/cmdOutputStreamingWithOsLib.scala @@ -1,3 +1,6 @@ +// {cat=Other; effects=Direct; backend=HttpClient}: Command output streaming with os-lib support + +//> using dep com.lihaoyi::os-lib:0.11.3 package sttp.client4.examples import sttp.client4.* diff --git a/examples/src/main/scala/sttp/client4/examples/downloadFileWitOsLib.scala b/examples/src/main/scala/sttp/client4/examples/downloadFileWitOsLib.scala index 8f926f331..4017afd73 100644 --- a/examples/src/main/scala/sttp/client4/examples/downloadFileWitOsLib.scala +++ b/examples/src/main/scala/sttp/client4/examples/downloadFileWitOsLib.scala @@ -1,4 +1,4 @@ -// {cat=Other; effects=Direct; backend=HttpClient}: Download file +// {cat=Other; effects=Direct; backend=HttpClient}: Download file with os-lib support //> using dep com.lihaoyi::os-lib:0.11.3 package sttp.client4.examples diff --git a/examples/src/main/scala/sttp/client4/examples/uploadFileWithOsLib.scala b/examples/src/main/scala/sttp/client4/examples/uploadFileWithOsLib.scala index 24c66683c..8962942b2 100644 --- a/examples/src/main/scala/sttp/client4/examples/uploadFileWithOsLib.scala +++ b/examples/src/main/scala/sttp/client4/examples/uploadFileWithOsLib.scala @@ -1,4 +1,4 @@ -// {cat=Other; effects=Direct; backend=HttpClient}: Download file +// {cat=Other; effects=Direct; backend=HttpClient}: Download file with os-lib support //> using dep com.lihaoyi::os-lib:0.11.3 package sttp.client4.examples