bynk.http.cookie_field_list
Error A typed cookie write names a List field of the cookie record.
A List field of a cookies record is a cookie name sent several times, so writing one would be several Set-Cookie lines, which one Cookie cannot be. The typed write is refused for it. Write each cookie with an untyped Cookie { name, value } and withCookie.
Example
Ok("x").withCookie(Prefs.tags.cookie("a")) // ✗ `tags` is a `List` field
Ok("x").withCookie(Prefs.theme.cookie(Dark)) // ✓ a scalar fieldIn the Book
See also
- The grammar rule it governs:
http_handler. - Every code in its category, HTTP, on the diagnostic index.
bynk explain bynk.http.cookie_field_listshows the same from the installed toolchain, without a network.