def negotiate.of

ezmcp@0.1.0.0 · src/server.bend:73

import ezmcp@0.1.0.0/src/server.bend as Server
import Base

73# the revision a server answers to the one a client asks for: the same when
74# it is supported, else the latest (basic/lifecycle#version-negotiation)
75def negotiate.of(val: String, ok: Bool) -> String:
76  match ok:
77    case True{}:
78      val
79    case False{}:
80      latest()

Uses (3)

Used by (1)