Skip to content

UCLA-CS130/Team13

Repository files navigation

#Simple Http Server Build Status

Unsynchronous Web Server

##Team Member:

  • Hao Chen
  • Yunwen Zhu

###Usage:

Get the source code:

git clone --recursive https://github.com/UCLA-CS130/Team13.git

Change into the directory:

cd ./Team13

Compile:

make

Tips: When you just change one source file or very few files, you just need to remove the corresponding .o file, and compile again, it will greatly speed up compiling process.
Run:

./webserver <config>

How To Contribute

You can conveniently add Handler extending function of the server.

  • Create your own class. Be sure using .cc .h as file extension
  • Your Handler class should inherit RequestHandler class
  • Implement all virtual functions of RequestHandler class
  • call REGISTER_REQUEST_HANDLER(YourClassName) in header file
  • Configure your handler in config file
  • All Done, you can compile and run now

###Based On: Boost HTTP Server Example