def pair

emerging-ezhttp@0.21.0.0 · src/echo.bend:55

import emerging-ezhttp@0.21.0.0/src/echo.bend as Echo
import Base
import emerging-ezhttp@0.21.0.0/src/http.bend as Http
import emerging-ezhttp@0.21.0.0/src/qs.bend as Qs

55# the cookie one Set-Cookie field value sets: its name-value-pair is the text
56# before its first `;`, all of it without one (§5.2 step 1)
57def pair(line: String) -> Maybe<&2, Qs.Kv()>:
58  pair.cut(Qs.cut(Http.first(String.split(line, ';'))))

Uses (8)

Used by (1)