2013-10-27 22:24:23 +00:00
|
|
|
use HTTP;
|
|
|
|
|
use Collection;
|
2013-04-10 22:43:41 -07:00
|
|
|
|
2013-10-27 22:24:23 +00:00
|
|
|
class HttpTest {
|
|
|
|
|
function : Main(args : String[]) ~ Nil {
|
|
|
|
|
lines := HttpClient->New()->Get("http://rosettacode.org");
|
|
|
|
|
each(i : lines) {
|
|
|
|
|
lines->Get(i)->As(String)->PrintLine();
|
|
|
|
|
};
|
2013-04-10 22:43:41 -07:00
|
|
|
}
|
|
|
|
|
}
|