Get HTML page content

In case of any interest for a future reader, this post: https://ziggit.dev/t/unable-to-make-https-post-request/11955 presents an answer.

test "fetch" {
    var allocating = std.Io.Writer.Allocating.init(allocator);
    defer allocating.deinit();

    var client: std.http.Client = .{
        .allocator = allocator,
    };
    defer client.deinit();

    const response = try client.fetch(.{
        .method = .GET,
        .location = .{ .url = url },
        .response_writer = &allocating.writer,
    });

    std.debug.assert(response.status == .ok);
    std.debug.print("{s}\n", .{allocating.written()});

   // allocating.toOwnedSlice()     <-- to use the result
}

Then looking how to get streams.