in azure_functions_worker/bindings/datumdef.py [0:0]
def parse_to_rpc_http_cookie_list(cookies: Optional[List[SimpleCookie]]):
if cookies is None:
return cookies
rpc_http_cookies = []
for cookie in cookies:
for name, cookie_entity in cookie.items():
rpc_http_cookies.append(
protos.RpcHttpCookie(name=name,
value=cookie_entity.value,
domain=to_nullable_string(
cookie_entity['domain'],
'cookie.domain'),
path=to_nullable_string(
cookie_entity['path'], 'cookie.path'),
expires=to_nullable_timestamp(
parse_cookie_attr_expires(
cookie_entity), 'cookie.expires'),
secure=to_nullable_bool(
bool(cookie_entity['secure']),
'cookie.secure'),
http_only=to_nullable_bool(
bool(cookie_entity['httponly']),
'cookie.httpOnly'),
same_site=parse_cookie_attr_same_site(
cookie_entity),
max_age=to_nullable_double(
cookie_entity['max-age'],
'cookie.maxAge')))
return rpc_http_cookies