Lines Matching refs:mtype

304     nxt_str_t               *shr, *index, exten, *mtype;  in nxt_http_static_send_ready()  local
324 mtype = NULL; in nxt_http_static_send_ready()
350 mtype = nxt_http_static_mtype_get(&rtcf->mtypes_hash, &exten); in nxt_http_static_send_ready()
352 ret = nxt_http_route_test_rule(r, conf->types, mtype->start, in nxt_http_static_send_ready()
353 mtype->length); in nxt_http_static_send_ready()
553 if (mtype == NULL) { in nxt_http_static_send_ready()
554 mtype = nxt_http_static_mtype_get(&rtcf->mtypes_hash, &exten); in nxt_http_static_send_ready()
557 if (mtype->length != 0) { in nxt_http_static_send_ready()
565 field->value = mtype->start; in nxt_http_static_send_ready()
566 field->value_length = mtype->length; in nxt_http_static_send_ready()
1033 nxt_http_static_mtype_t *mtype; in nxt_http_static_mtypes_hash_add() local
1035 mtype = nxt_mp_get(mp, sizeof(nxt_http_static_mtype_t)); in nxt_http_static_mtypes_hash_add()
1036 if (nxt_slow_path(mtype == NULL)) { in nxt_http_static_mtypes_hash_add()
1040 mtype->exten = *exten; in nxt_http_static_mtypes_hash_add()
1041 mtype->type = type; in nxt_http_static_mtypes_hash_add()
1046 lhq.value = mtype; in nxt_http_static_mtypes_hash_add()
1058 nxt_http_static_mtype_t *mtype; in nxt_http_static_mtype_get() local
1067 mtype = lhq.value; in nxt_http_static_mtype_get()
1068 return mtype->type; in nxt_http_static_mtype_get()
1078 nxt_http_static_mtype_t *mtype; in nxt_http_static_mtypes_hash_test() local
1080 mtype = data; in nxt_http_static_mtypes_hash_test()
1082 return nxt_strcasestr_eq(&lhq->key, &mtype->exten) ? NXT_OK : NXT_DECLINED; in nxt_http_static_mtypes_hash_test()