179
179
var loop = MainContext.default ();
181
191
var test_address = new Soup.Address ("127.0.0.1", Soup.ADDRESS_ANY_PORT);
182
192
test_address.resolve_sync (null);
183
193
var test_server = new Soup.Server ("interface", test_address, null);
185
194
test_server.run_async ();
186
198
test_server.add_handler ("/", (server, msg, path, query, client)=>{
187
199
msg.set_status_full (200, "OK");
188
200
msg.response_body.append_take ("<body></body>".data);