https://github.com/maxlorenz/webserver-fsharp
Simple Webserver in F#
https://github.com/maxlorenz/webserver-fsharp
Last synced: about 1 year ago
JSON representation
Simple Webserver in F#
- Host: GitHub
- URL: https://github.com/maxlorenz/webserver-fsharp
- Owner: maxlorenz
- Created: 2015-05-15T13:46:18.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-12-14T13:45:12.000Z (over 10 years ago)
- Last Synced: 2025-03-23T22:46:20.623Z (about 1 year ago)
- Language: F#
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# webserver-fsharp
A simple webserver in F#. It's purpose is to create a REST Api fast.
## Example usage
``` fsharp
Webserver.listen
"localhost"
8000
"404, site not found!"
[
"", fun _ -> "status"
"/categories", fun _ -> "list of all categories: ..."
"/applications", fun _ -> "list of all applications: ..."
"/categories/{{name}}", fun x -> sprintf "requested %s" x.["name"].Value
// ...
]
```