2025-06-11 20:16:52 -04:00
|
|
|
import net'http;
|
2026-02-01 16:33:20 -08:00
|
|
|
import mbedtls'client'registration;
|
2025-06-11 20:16:52 -04:00
|
|
|
|
2026-02-01 16:33:20 -08:00
|
|
|
public Program()
|
2025-06-11 20:16:52 -04:00
|
|
|
{
|
|
|
|
|
using(HttpClient client := HttpClient.open("https://www.google.com"))
|
|
|
|
|
{
|
|
|
|
|
HttpResponse response := client.get();
|
|
|
|
|
|
|
|
|
|
string content := response.readAsString();
|
|
|
|
|
|
|
|
|
|
Console.writeLine(content);
|
|
|
|
|
};
|
|
|
|
|
}
|