'Handle an FCGI_GET_VALUES request from the web server.'

def _do_get_values(self, inrec):

    outrec = Record(FCGI_GET_VALUES_RESULT)
    pos = 0
    while (pos < inrec.contentLength):
        (pos, (name, value)) = decode_pair(inrec.contentData, pos)
        cap = self.server.capability.get(name)
        if (cap is not None):
            outrec.contentData += encode_pair(name, str(cap))
    outrec.contentLength = len(outrec.contentData)
    self.writeRecord(outrec)
