Cask is a simple Scala web framework inspired by Python’s Flask project. Cask allows you to define your web applications endpoints using simple function defs that you already know and love, annotated with the minimal additional metadata necessary to work as HTTP endpoints.
It aims to bring simplicity, flexibility and ease-of-use to Scala web servers, avoiding cryptic DSLs or complicated asynchrony.
This is free and open source software.
It turns out that function defs already provide almost everything you need in a HTTP endpoint:
- The parameters the endpoint takes
- If any parameters are optional, and their default values
- The ability to return a Response
Cask extends these basics with annotations, providing:
- What request path the endpoint is available at
- Automated deserialization of endpoint parameters from the respective format (Form-encoded? Query-string? JSON?)
- Wrapping the endpoint’s function def with custom logic: logging, authentication, …
Website: github.com/com-lihaoyi/cask
Support:
Developer: Li Haoyi
License: MIT License
Cask is written in Scala. Learn Scala with our recommended free books and free tutorials.
Return to Scala Micro-Web Frameworks
| Explore Linux | |
|---|---|
| Best Free and Open Source Software - A huge collection of recommended free and open source software covering every major category. | |
| In-depth Linux Software Reviews - Detailed assessments of Linux software covering features, usability and overall quality. | |
| The Big List of Active Linux Distros - An extensive collection of actively developed Linux distributions. | |
| Open Source Alternatives - Alternatives to software and services from Google, Microsoft, Apple, Adobe, IBM, Autodesk, Oracle and others. | |
| Essential Linux System Tools - Indispensable utilities for monitoring, maintaining and managing Linux systems. | |
| Linux Productivity Tools - Useful utilities for improving productivity and streamlining everyday tasks. | |
| Alternatives to Popular CLI Tools - Modern alternatives to familiar command-line utilities supplied with Linux systems. | |
| Awesome Free Linux Game Tools - Tools, utilities and companion software that improve gaming on Linux. | |
| Machine Learning on Linux - Machine learning and deep learning software, self-hosted applications and practical tools. | |
| Saving Money with Linux - Practical ways to reduce electricity consumption and lower computing costs with Linux. | |
| Linux Candy - Fun, entertaining and sometimes delightfully quirky software from the lighter side of Linux. | |

Please read our Comment Policy before commenting.