def proxy.connect

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

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

3485def proxy.connect(s: Socket, +ms: U32, sni: String, authority: String,
3486    authorization: String, cert: Maybe<&2, Cert>, +ca: String) ->
3487    IO(Result<&1, &1, Err, Conn>):
3488  do IO<Result<&1, &1, Err, Conn>>:
3489    sent : Socket & Result<&1, &1, U32 & String, Unit> <-
3490      io.send.bytes(False{}, s, Bytes.from_string(proxy.connect.header(authority, authorization)))
3491    proxy.connect.sent(sent, ms, sni, cert, ca)

Uses (17)

Used by (1)