Lines Matching refs:http
2 A trivial static http webserver using Libevent's evhttp.
35 #include <event2/http.h>
144 /* This callback gets invoked when we get any http request that doesn't match
313 fprintf(stdout, "Syntax: http-server <docroot>\n");
320 struct evhttp *http;
343 http = evhttp_new(base);
344 if (!http) {
350 evhttp_set_cb(http, "/dump", dump_request_cb, NULL);
354 evhttp_set_gencb(http, send_document_cb, argv[1]);
357 handle = evhttp_bind_socket_with_handle(http, "0.0.0.0", port);
395 "http://%s:%d",addr,got_port);