Lines Matching refs:httpd
112 { ".cgi", "application/x-httpd-cgi", "", "", NULL },
221 bozo_match_content_map(bozohttpd_t *httpd, const char *name,
228 map = search_map(httpd->dynamic_content_map, name, len);
241 bozohttpd_t *httpd = request->hr_httpd;
244 map = bozo_match_content_map(httpd, file, 0);
247 return httpd->consts.text_plain;
256 bozohttpd_t *httpd = request->hr_httpd;
259 map = bozo_match_content_map(httpd, file, 0);
261 return (request->hr_proto == httpd->consts.http_11) ?
269 bozo_get_content_map(bozohttpd_t *httpd, const char *name)
273 if ((map = bozo_match_content_map(httpd, name, 1)) != NULL)
276 httpd->dynamic_content_map_size++;
277 httpd->dynamic_content_map = bozorealloc(httpd,
278 httpd->dynamic_content_map,
279 (httpd->dynamic_content_map_size + 1) * sizeof *map);
280 if (httpd->dynamic_content_map == NULL)
281 bozoerr(httpd, 1, "out of memory allocating content map");
282 map = &httpd->dynamic_content_map[httpd->dynamic_content_map_size];
303 bozo_add_content_map_mime(bozohttpd_t *httpd, const char *cmap0,
308 debug((httpd, DEBUG_FAT,
312 map = bozo_get_content_map(httpd, cmap0);