Skip to content
/ raf Public

a simple web application framework implements by racket

Notifications You must be signed in to change notification settings

z-song/raf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

raf

A simple REST Application Framework implements by Racket

####Usage

#lang racket

(require "main.rkt")

(app/get "/"
         (lambda (req) "hello world"))

(app/get "post/:id/:name"
         (lambda (req)
           (let* ([id (param 'id)] [name (param 'name)])
             (cond
               [(not (string? id)) (set! id "")])
             (string-append "id is"  id " and name is " name))))

(app/listen 80)

(app/run)

About

a simple web application framework implements by racket

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages