http4s-dom
Use http4s in your browser with Scala.js! Features:
- A 
Clientimplementation backed byfetch - A 
WSClientimplementation backed byWebSocket - A 
Service Workerintegration to install yourHttpRoutesas aFetchEventhandler - Encoders for 
File,BlobandReadableStream 
Notably, http4s-dom can also be used to create serverless apps with Cloudflare Workers which have adopted the same APIs used in the browser!
It is also possible to use the FetchClient in Node.js v18+, which added experimental support for fetch, although some browser-specific features may not be available.
Installation
libraryDependencies += "org.http4s" %%% "http4s-dom" % "0.2.12"
// recommended, brings in the latest client module
libraryDependencies += "org.http4s" %%% "http4s-client" % "0.23.30"