Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

4
Task/HTTP/D/http-1.d Normal file
View file

@ -0,0 +1,4 @@
void main() {
import std.stdio, std.net.curl;
writeln(get("http://google.com"));
}

6
Task/HTTP/D/http-2.d Normal file
View file

@ -0,0 +1,6 @@
import tango.io.Console;
import tango.net.http.HttpGet;
void main() {
Cout.stream.copy( (new HttpGet("http://google.com")).open );
}

10
Task/HTTP/D/http-3.d Normal file
View file

@ -0,0 +1,10 @@
import tango.io.Console;
import tango.net.InternetAddress;
import tango.net.device.Socket;
void main() {
auto site = new Socket;
site.connect (new InternetAddress("google.com",80)).write ("GET / HTTP/1.0\n\n");
Cout.stream.copy (site);
}