- Alex Waz
- Derek Nguyen
- Sung Hyun Yoon
make
make test
make clean
make coverage
make integration
./server <config_file>
make deploy
docker run --rm -t -p 8080:8080 httpserver
- All the source code is in the base directory.
- The main function is declared in
server_main.cc
. Request
andResponse
classes are defined inrequest_handler.h
andrequest_handler.cc
.- Other than these two, each
.h
and.cc
file only contains definition of a single class. - Unit tests for
ExampleClass
are inexample_class_test.cc
. path_config
is an example config file used for assignment 6.server_integration_test.py
is our integration test script.- The following files are only used for testing:
example
,example_config
,test.txt
, and files underhw4/
.
Team05 has added a ProxyHandler. It takes in its configuration a URL. Upon
request, the handler gets the body of the response from the given URL and in
turn sends it back to the client. It will handle redirection response codes
by recursively attempting to do this until it receives a valid response. Links
clicked on pages displayed when using the proxy will continue to use the
proxy. If testing the server with "./server path_config", the UCLA website can
be displayed by going to localhost:8080/reverse_proxy in a browser.