Added handling for GET and PUT in HTTP server.