def cookies(*requireds, **defaults):
 if (defaults.get('_unicode') is True):
  defaults['_unicode'] = decode_cookie
 if ('_parsed_cookies' not in ctx):
  http_cookie = ctx.env.get('HTTP_COOKIE', '')
  ctx._parsed_cookies = parse_cookies(http_cookie)
 try:
  return storify(ctx._parsed_cookies, *requireds, **defaults)
 except KeyError:
  badrequest()
  raise StopIteration()

def cookies ( * requireds , ** defaults ) : if ( defaults . get ( '_unicode' ) is True ) : defaults [ '_unicode' ] = decode_cookie if ( '_parsed_cookies' not in ctx ) : http_cookie = ctx . env . get ( 'HTTP_COOKIE' , '' ) ctx . _parsed_cookies = parse_cookies ( http_cookie ) try : return storify ( ctx . _parsed_cookies , * requireds , ** defaults ) except KeyError : badrequest ( ) raise StopIteration ( )
returns a storage object with all the cookies in it .