pub fn writer(c: *Connection) *Writer c: *Connection437
438
439
440
441
442
443
444
445
446 pub fn writer(c: *Connection) *Writer {
return switch (c.protocol) {
.tls => {
if (disable_tls) unreachable;
const tls: *Tls = @alignCast(@fieldParentPtr("connection", c));
return &tls.client.writer;
},
.plain => &c.stream_writer.interface,
};
}
HTTP protocol from client to server. This either goes directly to
stream_writer, or to a TLS client.