---title:"mg_serve_http()"decl_name:"mg_serve_http"symbol_kind:"func"signature:|void mg_serve_http(struct mg_connection *nc, struct http_message *hm,struct mg_serve_http_opts opts);---Serves given HTTP request according to the `options`.Example code snippet:```cstaticvoidev_handler(structmg_connection*nc,intev,void*ev_data){structhttp_message*hm=(structhttp_message*)ev_data;structmg_serve_http_optsopts={.document_root="/var/www"};// C99switch(ev){caseMG_EV_HTTP_REQUEST:mg_serve_http(nc,hm,opts);break;default:break;}}```