SETUP
- No setup required!
USAGE
- Import "server.py"
- Use the Server() class.
- bind_addr((HOST, PORT))
- bind('GET', GET)
- bind accepts any valid http response type.
- bind sends a BaseHTTPRequestHandler object to your function.
- use run() to runserver
- use close() close server
- use unbind() to unbind server event
- use reset() to reset server