Skip to content

takebayashi/swiftra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swiftra

Swiftra is a library that provides DSLs like Sinatra.

System Requirements

DEVELOPMENT-SNAPSHOT-2016-02-08-a

Example

See swiftra-example.

import swiftra

get("/hello") { req in
    return "Hello, world!"
}

post("/form") { req in
    return "Hello: \(req.bodyString)"
}

get("/404") { req in
    return Response(.NotFound)
}

serve(8080)

About

Sinatra-like DSL for developing web apps in Swift

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •