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