def proxy.connect.extra

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

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

3387def proxy.connect.extra(m: Maybe<&2, String>, s: Socket, +ms: U32,
3388    sni: String, cert: Maybe<&2, Cert>, +ca: String) -> IO(Result<&1, &1, Err, Conn>):
3389  match m:
3390    case None{}:
3391      proxy.connect.fail(s, ErrBad{})
3392    case Some{rest}:
3393      match rest:
3394        case SNil{}:
3395          conn.secure(ms, sni, s, True{}, cert, True{}, ca)
3396        case other:
3397          proxy.connect.fail(s, ErrBad{})

Uses (12)

Used by (1)