Skip to content

guenchi/Catapult

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Catapult

Catapult is a web framework for Igropyr

easy to write the router

(req
    ("/"                index)
    ("/index"           index)
    ("/users"           users)
    ("/notes"           notes)
    ("/blog/*/en"       blogEN)
    ("/articles/*"      article)
    ("/*"               handle404))

easy to define responses

(define index
    (lambda (header path query)
        (res "hello world")))

(define index
    (lambda (header path query)
        (res 200 "hello world")))

(define index
    (lambda (header path query)
        (res "text/html" "<h1>hello world</h1>")))
        
(define index
    (lambda (header path query)
        (res 200 "text/html" "<h1>hello world</h1>")))
(res string)                => response content only

(res int string)            => response status and content

(res string string)         => response style and content

(res int string string)     => response status, style and content

Igropyr is an async http-server for Chez Scheme

Catapult's sister framework: Ballista (Express-style)

About

a Web framework for Igropyr (Chez Scheme http-server)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages