When receive a request, actually process it, and write back a
response.