pub fn reader(c: *Connection) *Reader c: *Connection450
451
452
453
454
455
456
457
458
459 pub fn reader(c: *Connection) *Reader {
return switch (c.protocol) {
.tls => {
if (disable_tls) unreachable;
const tls: *Tls = @alignCast(@fieldParentPtr("connection", c));
return &tls.client.reader;
},
.plain => &c.stream_reader.interface,
};
}
HTTP protocol from server to client. This either comes directly from
stream_reader, or from a TLS client.