Reusable server abstraction for handling requests.