Home
last modified time | relevance | path

Searched refs:content_type (Results 1 – 11 of 11) sorted by relevance

/unit/src/
H A Dnxt_http_error.c31 nxt_http_field_t *content_type; in nxt_http_request_error() local
48 content_type = nxt_list_zero_add(r->resp.fields); in nxt_http_request_error()
49 if (nxt_slow_path(content_type == NULL)) { in nxt_http_request_error()
53 nxt_http_field_set(content_type, "Content-Type", "text/html"); in nxt_http_request_error()
H A Dnxt_http_response.c28 offsetof(nxt_http_request_t, resp.content_type) },
H A Dnxt_http.h110 nxt_http_field_t *content_type; member
155 nxt_http_field_t *content_type; member
H A Dnxt_php_sapi.c1059 SG(request_info).content_type = nxt_unit_sptr_get(&f->value);
H A Dnxt_unit.c1938 static nxt_str_t content_type = nxt_string("content-type"); in nxt_unit_request_group_dup_fields() local
1961 if (fields[i].name_length == content_type.length in nxt_unit_request_group_dup_fields()
1962 && nxt_unit_memcasecmp(name, content_type.start, in nxt_unit_request_group_dup_fields()
1963 content_type.length) == 0) in nxt_unit_request_group_dup_fields()
H A Dnxt_h1proto.c175 offsetof(nxt_http_request_t, content_type) },
H A Dnxt_router.c5655 } else if (field == r->content_type) { in nxt_router_prepare_msg()
/unit/src/java/nginx/unit/
H A DRequest.java314 private boolean checkMultiPart(String content_type) in checkMultiPart() argument
316 return content_type != null in checkMultiPart()
322 String content_type = getContentType(); in parseMultiParts() local
324 if (!checkMultiPart(content_type)) { in parseMultiParts()
332 parseMultiParts(content_type); in parseMultiParts()
340 content_type, multipart_config, tmpDir); in parseMultiParts()
724 String content_type = getContentType(req_ptr); in getContentType() local
726 if (characterEncoding == null && content_type != null) { in getContentType()
734 return content_type; in getContentType()
841 String content_type = getContentType(); in getParameters() local
[all …]
/unit/test/unit/
H A Dhttp.py68 body, content_type = self.form_encode(body)
70 headers['Content-Type'] = content_type
301 body, content_type = self.multipart_encode(fields)
304 body, content_type = self.form_url_encode(fields)
306 return body, content_type
/unit/test/
H A Dtest_java_application.py970 encoded, content_type = self.multipart_encode(fields)
978 'Content-Type': content_type,
/unit/src/java/
H A Dnxt_jni_Response.c1032 static const char content_type[] = "Content-Type"; in nxt_java_Response_setContentType() local
1033 static const uint32_t content_type_len = sizeof(content_type) - 1; in nxt_java_Response_setContentType()
1043 content_type, content_type_len, in nxt_java_Response_setContentType()