def cookie.from

emerging-ezhttp@0.21.0.0 · src/cookie.bend:218

import emerging-ezhttp@0.21.0.0/src/cookie.bend as Cookie
import Base
import emerging-ezhttp@0.21.0.0/src/http.bend as Http

218# the name=value pair, then the attribute list
219def cookie.from(_pair: String, attrs: List<&2, String>, cut: Http.Cut)
220  -> Maybe<&2, Cookie>:
221  match cut:
222    case Http.NoCut{}:
223      None{}
224    case Http.Cut{before, after}:
225      +name = String.trim(before)
226      cookie.from.name(name, String.trim(after), attrs, String.eq(name, ""))

Uses (8)

Used by (1)