Skip to content

nghenglim/hyperap

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 

Hyperap

crates.io

Hyperap - Hyper wrapper. A very minimal wrapper for Hyper.rs to create a working webserver.

How To Use

code refer to ./src/examples/simple

to see how it works

git clone https://github.com/nghenglim/hyperap
cd hyperap/examples/simple
cargo run

NOTE

  • Currently using hyper 0.11 branch which is async in nature, however coding in async will not clean unless the async/await rust feature come out
  • No point on creating synchronous version of rust webserver because NodeJS/Java/Go webserver is asynchronous version.

TODO

  • more functional on the add_route
  • route is able to specify the GET/POST definition, do validation before go into controller
  • all the routing is able to generate into a swagger file

About

Hyperap - Hyper wrapper. A very minimal wrapper for Hyper.rs to create a working webserver.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages