bynk.http.cookie_field_unknown
Error A typed cookie write names a field the cookie record does not have.
Record.field.cookie(value) and Record.field.expire() name a field of the cookie record, and the field is the one the cookie is named and encoded by. The name given is not a field of the record; the note lists its fields.
Example
Ok("x").withCookie(Prefs.mode.cookie(Dark)) // ✗ `Prefs` has no field `mode`
Ok("x").withCookie(Prefs.theme.cookie(Dark)) // ✓In 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_unknownshows the same from the installed toolchain, without a network.