Files
marqdo/tests/lib/net-cookie.mq.md
T
cflmyandCursor abcb141737 refactor: prefer link-index get across examples and tests
Migrate remaining footnote-style collection access in examples,
public/structure, and ext/lib smokes to [key](base); teach link-index in
structure pages and use bracket calls in the cafe journal example.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-14 12:54:38 +08:00

18 lines
470 B
Markdown

---
title: net cookie_parse
import net:lib/net.mq.md
---
# main
**req = > net.cookie_parse text="session=abc123; theme=dark"**
**resp = > net.cookie_parse text="id=42; Path=/; HttpOnly; Secure; SameSite=Lax, theme=light; Max-Age=3600" is_response=True**
> print text=[name]([1](`req`))
> print text=[value]([1](`req`))
> print text=[http_only]([1](`resp`))
> print text=[secure]([1](`resp`))
> print text=[same_site]([1](`resp`))
> print text=[max_age]([2](`resp`))