Process query and body requests.