This directory contains small, self-contained, examples of Opium applications.
These examples showcase specific features of Opium, they do not demonstrate how to build a full-fledged web servers.
hello_world
: Demonstration of simple Opium applicationexit_hook
: How to clean up an and exit an Opium appfile_upload
: How to upload a file with a multipart formhtml_response
: How to implement HTML handlersjson_response
: How to implement JSON handlersjson_request
: How to read and decode JSON requestsrock_server
: How to implement an HTTP server withRock
simple_middleware
: How to implement a simple middlewarestatic_serve
: How to serve static contentuser_auth
: How to implement a basic user authentication system