https://github.com/sitetester/scala-http-framework
Custom HTTP server and framework
https://github.com/sitetester/scala-http-framework
Last synced: over 1 year ago
JSON representation
Custom HTTP server and framework
- Host: GitHub
- URL: https://github.com/sitetester/scala-http-framework
- Owner: sitetester
- Created: 2020-03-26T13:41:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-08-20T14:17:17.000Z (almost 2 years ago)
- Last Synced: 2025-02-07T03:18:11.118Z (over 1 year ago)
- Language: Scala
- Homepage:
- Size: 148 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
An attempt to write custom HTTP framework
Based on Java sockets, Http Server is started on configured port. It handles each client in separate thread.
There is a framework library inside. It parses plain HTTP request from CURL.
Features:
- Routes are based on custom ScalaRoute class
- Views are loading with passed params
- Request/Response objects are functional. We can see each one's functionality in their respective classes.
- Unit tests added for Request/Response, Routing, Templating & Controller(s)
- Db access is provided through custom QueryBuilder class
- Templating is functional along with basic filters and functions