Get the latest tech news
Show HN: Schematra – Sinatra-inspired minimal web framework for Chicken Scheme
sinatra inspired scheme web framework. Contribute to rolandoam/schematra development by creating an account on GitHub.
Simple route definition with get and post functions URL parameter extraction (e.g.,/users/:id) & body parsing Middleware support Included naive session middleware (cookie storage) Development mode with REPL integration (leveraging emacs run-scheme) Very simple hiccup inspired template system Built on top of the solid Spiffy web server ok(200) created(201) found(302) - for redirects bad-request(400) unauthorized(401) forbidden(403) not-found(404) internal-server-error(500) And many others following HTTP status code conventions Redirect and halt both generate a specific signal that's captured by the main router and short-circuit any other processing: no other middleware or part of the route handler will be executed.
Or read this on Hacker News