Lines Matching defs:myhttp
83 http_bind(struct evhttp *myhttp, ev_uint16_t *pport)
88 sock = evhttp_bind_socket_with_handle(myhttp, "127.0.0.1", *pport);
103 struct evhttp *myhttp;
106 myhttp = evhttp_new(base);
108 if (http_bind(myhttp, pport) < 0)
112 evhttp_set_cb(myhttp, "/test", http_basic_cb, base);
113 evhttp_set_cb(myhttp, "/chunked", http_chunked_cb, base);
114 evhttp_set_cb(myhttp, "/streamed", http_chunked_cb, base);
115 evhttp_set_cb(myhttp, "/postit", http_post_cb, base);
116 evhttp_set_cb(myhttp, "/putit", http_put_cb, base);
117 evhttp_set_cb(myhttp, "/deleteit", http_delete_cb, base);
118 evhttp_set_cb(myhttp, "/delay", http_delay_cb, base);
119 evhttp_set_cb(myhttp, "/largedelay", http_large_delay_cb, base);
120 evhttp_set_cb(myhttp, "/badrequest", http_badreq_cb, base);
121 evhttp_set_cb(myhttp, "/", http_dispatcher_cb, base);
122 return (myhttp);
1874 struct evhttp *myhttp = NULL;
1878 myhttp = evhttp_new(data->base);
1879 if (evhttp_bind_socket(myhttp, "127.0.0.1", 65535 - i) == 0) {
1881 evhttp_free(myhttp);
1884 evhttp_free(myhttp);