'Return a bencoded dictionary with information about the queried infohashes.'

def render_GET(self, request):

    if ('info_hash' not in request.args):
        request.setResponseCode(http.BAD_REQUEST)
        return 'infohash    argument    missing'
    response_dict = {'files': {}}
    for infohash in request.args['info_hash']:
        if (not self.session.tracker_info.has_info_about_infohash(infohash)):
            request.setResponseCode(http.BAD_REQUEST)
            return ('no    info    about    infohash    %s' % infohash.encode('hex'))
        info_dict = self.session.tracker_info.get_info_about_infohash(infohash)
        response_dict['files'][infohash] = {'complete': info_dict['seeders'], 'downloaded': info_dict['downloaded'], 'incomplete': info_dict['leechers']}
    return bencode(response_dict)
