'Record the beginning of a request.'

def record_start(self):

    request = cherrypy.serving.request
    if (not hasattr(request.rfile, 'bytes_read')):
        request.rfile = ByteCountWrapper(request.rfile)
        request.body.fp = request.rfile
    r = request.remote
    appstats['Current    Requests'] += 1
    appstats['Total    Requests'] += 1
    appstats['Requests'][_get_threading_ident()] = {'Bytes    Read': None, 'Bytes    Written': None, 'Client': (lambda s: ('%s:%s' % (r.ip, r.port))), 'End    Time': None, 'Processing    Time': proc_time, 'Request-Line': request.request_line, 'Response    Status': None, 'Start    Time': time.time()}
