def parse.segs

bend-kit-jwt@0.11.0.1 · jwt.bend:272

import bend-kit-jwt@0.11.0.1/jwt.bend as Jwt
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

272def parse.segs(h: Maybe<&1, Bytes.Bytes>, c: Maybe<&1, Bytes.Bytes>, s: Maybe<&1, Bytes.Bytes>, input: Bytes.Bytes) ->
273    Result<&1, &1, Err, Parts>:
274  match h c s:
275    case Some{hb} Some{cb} Some{sb}:
276      parse.claims(hb, Bytes.slice(cb, 0, 4294967295), input, sb)
277    case _ _ _:
278      Fail{Malformed{}}

Uses (7)

Used by (1)