std.http.Client.Connection: make host() public

Closes #25153
This commit is contained in:
baltevl 2025-09-05 09:03:58 +02:00 committed by Andrew Kelley
parent 02396f8d5c
commit 34409635ad

View File

@ -382,7 +382,7 @@ pub const Connection = struct {
return c.stream_reader.getStream();
}
fn host(c: *Connection) []u8 {
pub fn host(c: *Connection) []u8 {
return switch (c.protocol) {
.tls => {
if (disable_tls) unreachable;