Skip to content

pjfanning/zio-http-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zio-http-example

Example of how to use zio-http with scala 3.

  • Checkout this repo to your machine.
  • There is a simpler version of this example in the without-metrics branch
  • The main branch includes examples of how to use zio-metrics-micrometer
sbt run
curl -v http://localhost:8090/json
curl -v http://localhost:8090/text
curl -v http://localhost:8090/timed

After a few calls to these endpoints, you can get count metrics in Prometheus format by calling:

curl -v http://localhost:8090/metrics

About

Example of how to use zio-http with scala 3

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages