title: Short circuit connection between client and aiohttp web server
body: <p>I'm writing an application that use aiohttp to publish a web api. I also need to publish the same api with another protocol (xmpp). Currently the solution is to embed an xmpp client in the same process that connects to the web api using a regular HTTP connection (aiohttp client) and forwards the response through xmpp. But since they are both running in the same process I would prefer if there was a way to "short circuit" the connection.</p>
  
  <p>I'm thinking something like creating a Request instance and passing it to a method in the aiohttp web application (perhaps the <code>_handle()</code> method?) to process it.</p>
  
  <p>Any hints on how to do this in a (preferably) non-hackish manner?</p>