1
0
Fork 0
forked from fun/fun
fun/web/documentation/examples/data/htdocs/counter.md

43 lines
984 B
Markdown

---
layout: page
published: true
noToc: true
noComments: false
noDate: false
title: Fun - counter.fun (CGI)
subtitle: Documentation for counter.fun (CGI)
description: Documentation for counter.fun (CGI)
permalink: /documentation/examples/data/htdocumentation/counter/
lang: en
tags:
- documentation
- handbook
- installation
- usage
- introduction
- help
- guide
- howto
- docs
- specifications
- specs
- repl
---
# counter.fun (CGI)
- Location: examples/data/htdocumentation/counter.fun
- Category: CGI script used by HTTP server examples
Description
- Simple stateful counter example for CGI; demonstrates reading and updating a value across requests (implementation details in script).
How to run
- Through one of the HTTP server examples, e.g.:
- export FUN_LIB_DIR="./lib"
- export FUN_EXEC="./build_debug/fun"
- ./build_debug/fun examples/net/http_server_cgi.fun
- Open: http://127.0.0.1:8080/counter.fun
See also
- documentation/examples/httpserver.md (deep-dive)