From cc5d563654f32a828ab8fe4147412f1197cfcc6f Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 29 Jan 2023 15:25:55 +0100 Subject: [PATCH] =?utf8?q?README.sh=20f=C3=BCr=20die=20=C3=9Cbung=20`rest-?= =?utf8?q?producer--headers`=20umgestellt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- README.sh | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/README.sh b/README.sh index 3dc3476..9b15a70 100755 --- a/README.sh +++ b/README.sh @@ -29,15 +29,10 @@ docker-compose up -d producer while ! [[ $(http 0:8080/actuator/health 2> /dev/null) =~ "UP" ]]; do echo "Waiting for producer..."; sleep 1; done -# tag::success[] -echo -n 'Hallo Welt!' | http -v :8080/foo -# end::success[] - -# tag::failure[] -dd if=/dev/zero bs=1024 count=1024 | http -v :8080/bar -# end::failure[] - -# tag::timeout[] -docker-compose stop kafka-1 kafka-2 kafka-3 -echo -n 'Hallo again...' | http -v --timeout 30 :8080/foo -# end::timeout[] +# tag::http[] +echo -n bar | http -v :8080/foo +echo -n foo | http -v :8080/bar X-id:666 +# end::http[] +# tag::kafkacat[] +docker-compose exec cli kafkacat -b kafka:9092 -t test -f "%p|%o|%k=%s|%h\n" -e +# end::kafkacat[] -- 2.20.1