Plan 9 from Bell Labs’s /usr/web/sources/contrib/maht/limbo/http_client/httpc_test.b

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


implement httpc_test;

include "http_client.m";
include "draw.m";
include "sys.m";

sys : Sys;
draw : Draw;

http : Http_client;


httpc_test : module
{
	init : fn (nil : ref Draw->Context, nil : list of string);
};

init(nil : ref Draw->Context, nil : list of string)
{
	sys = load Sys Sys->PATH;
	http = load Http_client Http_client->PATH;
	draw = load Draw Draw->PATH;

	get := http->make_request("GET", "bobdomain.com", "/", nil);

	sys->print("%s\n", "get");

}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.