ZIO HTTP Examples
This section aims to demonstrate the usage of key concepts and ideas in the ZIO HTTP library with examples.
Authentication
Authentication Server Example
Command-line Interface (CLI)
Concrete Entity
Endpoint Scala 3 Syntax
Endpoint
Graceful Shutdown
Hello World
Simple Example
HTML Templating
HTTP Client-Server
Client and Server Example
Https Client and Server
Client Example
Middleware CORS Handling
Multipart Form Data
Multipart Form Data Example
Server Sent Events in Endpoints
Serving Static Files
Serving Static Files
Static Files
Streaming
Streaming Request
WebSocket Server & Client
This example shows how to create a WebSocket server using ZIO HTTP and how to write a client to connect to it.