Skip to content

Example of a REST server by HTTP4S, acting as a REST client by STTP, glued together by ZIO.

Notifications You must be signed in to change notification settings

spoter-ME/http4s-zio-sttp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZIO with http4s and STTP

This is an example of calling a web service by STTP from an http4s web service.

ZIO is used as the glue effects library in order to make http4s and STTP collaborate. As http4s and STTP that are using cats-effect, ZIO has a separate module called: zio-interop-cats which contains instances for the Cats Effect library, and allows you to use ZIO with any libraries that rely on Cats Effect like in our case http4s and STTP.

Attention: Not yet compilable!

Checkout this blog post: link. It explains in details how to use ZIO with http4s and doobie.

Find the implementation in this package: com.zio.examples.http4s_doobie

Inspired by: Maxim Schuwalow in this project: zio-todo-backend

Credit: @jdegoes and @mschuwalow

Eat chocolate with ZIO

in package: quickstart

This example is a quickstart on how could you repeat and retry actions using ZIO

About

Example of a REST server by HTTP4S, acting as a REST client by STTP, glued together by ZIO.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages