1
Fork 0
theorangeone.net-legacy/content/projects/lantern.md

18 lines
671 B
Markdown
Raw Permalink Normal View History

2020-12-06 16:18:21 +00:00
---
title: Lantern
repo: RealOrangeOne/lantern
subtitle: Write a web server in almost any language.
---
Lantern is a generic web server which wraps any application and allows it to respond to HTTP requests. The request body and headers are passed to `stdin` as JSON, and anything sent to `stdout` is returned to the client.
Is this useful? Not really.
Isn't this basically just [CGI](https://www.geeksforgeeks.org/common-gateway-interface-cgi/)? Yeah kinda.
Should this be used for production deployments? Definitely not!
It's just a fun experiment with [`sanic`](https://sanic.readthedocs.io/en/latest/) and async programming in its early days.
{{% repobutton %}}