creating a basic request handler to handle HTTP requests