def pool.key.cert

bend-kit-http@0.38.2.0 · http.bend:2679

import bend-kit-http@0.38.2.0/http.bend as Http
import Base

2679def pool.key.cert(+base: String, cert: Maybe<&2, Cert>) -> String:
2680  match cert:
2681    case None{}:
2682      base
2683    case Some{Cert{+chain, +key}}:
2684      base ++ "|cert:" ++ Nat.show(String.length(chain)) ++ ":" ++ chain
2685        ++ Nat.show(String.length(key)) ++ ":" ++ key

Uses (6)

Used by (1)