'Handle an FCGI_PARAMS Record.
If the last FCGI_PARAMS Record is received, start the request.'

def _do_params(self, inrec):

    req = self._requests.get(inrec.requestId)
    if (req is not None):
        if inrec.contentLength:
            pos = 0
            while (pos < inrec.contentLength):
                (pos, (name, value)) = decode_pair(inrec.contentData, pos)
                req.params[name] = value
        else:
            self._start_request(req)
