@property
    def cookies(self):
        def _cookies():
            cookies = self._environ.get('HTTP_COOKIE')
            cs = {}
            if cookies:
                for c in cookies.split(';'):
                    pos = c.find('=')
                    if pos>0:
                        cs[unicode(c[:pos].strip())] = _unquote(c[pos+1:])
            return cs
        return self._fromcache('CACHED_COOKIES', _cookies)
Lazily compute type map, as calling ffi.typeof() involves costly
dataset/ETHPy150Open michaelliao/transwarp/transwarp/web.py/Request.cookies--crossover with--dataset/ETHPy150Open numba/numba/numba/typing/cffi_utils.py/_type_map