Commit 34409635ad

baltevl <baltevl@disroot.org>
2025-09-05 09:03:58
std.http.Client.Connection: make host() public Closes #25153
1 parent 02396f8
Changed files (1)
lib
std
lib/std/http/Client.zig
@@ -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;