Last active
May 27, 2023 15:31
-
-
Save dacr/af1f3b998855ed077b1a6de31008b17a to your computer and use it in GitHub Desktop.
scala cli - hello world - run context as command line parameters / published by https://github.com/dacr/code-examples-manager #0aaf97c7-71fc-436f-8d1d-be54a7ec9210/513d35b507bd89d9573022786b954eb4e5eeeb2b
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// summary : scala cli - hello world - run context as command line parameters | |
// keywords : scala, scalacli, helloworld, requests, http, @testable | |
// publish : gist | |
// authors : David Crosson | |
// license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2) | |
// id : 0aaf97c7-71fc-436f-8d1d-be54a7ec9210 | |
// created-on : 2021-11-11T09:17:28+01:00 | |
// managed-by : https://github.com/dacr/code-examples-manager | |
// run-with : scala-cli --scala 3.3.0 --dep com.lihaoyi::requests:0.8.0 $file | |
val r = requests.post("https://httpbin.org/post", data = "Hello World") | |
println(r.text()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment