Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active May 27, 2023 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dacr/af1f3b998855ed077b1a6de31008b17a to your computer and use it in GitHub Desktop.
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
// 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