Skip to content

hkateu/MyHttp4sCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Http4s Feature Examples

The main purpose of this project is to help me get a deeper understanding of the Http4s documentation. I structured the project with the same names in the documentation. The hanging code has been filled out, where you would find ??? for unfinished implementations in http4s documentation, i tried my best to implement these methods so that the code compiles. This whole project will be written entirely in scala 3 simply because its awesome :-) .

How to follow along

Clone this project into you computer by using this code:

> git clone https://github.com/hkateu/MyHttp4sCode.git

Navigate to the project directory

> cd MyHttp4sCode

Execute the sbt command to make sure it's working, this will take you to the sbt shell

> sbt

Each section is a standalone module, you can list the modules, the following way

sbt:root> projects

The default module is root module which is an aggregate of all the rest, once you compile it all the necessary libraries will download for the whole project, you can do this by running the compile command.

sbt:root> compile

Running root should produce the following output:

Scala3 Http4s code examples

To execute code for a particular module, for example service, one would run the following sequence of commands

sbt:root> project service
sbt:service>

About

Scala 3 execution of http4s documentation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published