Home
last modified time | relevance | path

Searched refs:content_length (Results 1 - 25 of 47) sorted by relevance

12

/third_party/nghttp2/lib/
H A Dnghttp2_http.c185 if (stream->content_length != -1) { in http_request_on_header()
188 stream->content_length = parse_uint(nv->value->base, nv->value->len); in http_request_on_header()
189 if (stream->content_length == -1) { in http_request_on_header()
264 if (stream->content_length != -1) { in http_response_on_header()
271 stream->content_length = 0; in http_response_on_header()
282 if (stream->content_length != -1) { in http_response_on_header()
285 stream->content_length = parse_uint(nv->value->base, nv->value->len); in http_response_on_header()
286 if (stream->content_length == -1) { in http_response_on_header()
453 stream->content_length = -1; in nghttp2_http_on_request_headers()
475 stream->content_length in nghttp2_http_on_request_headers()
[all...]
H A Dnghttp2_stream.h157 int64_t content_length; member
/third_party/node/deps/nghttp2/lib/
H A Dnghttp2_http.c185 if (stream->content_length != -1) { in http_request_on_header()
188 stream->content_length = parse_uint(nv->value->base, nv->value->len); in http_request_on_header()
189 if (stream->content_length == -1) { in http_request_on_header()
264 if (stream->content_length != -1) { in http_response_on_header()
271 stream->content_length = 0; in http_response_on_header()
282 if (stream->content_length != -1) { in http_response_on_header()
285 stream->content_length = parse_uint(nv->value->base, nv->value->len); in http_response_on_header()
286 if (stream->content_length == -1) { in http_response_on_header()
453 stream->content_length = -1; in nghttp2_http_on_request_headers()
475 stream->content_length in nghttp2_http_on_request_headers()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/
H A Dhttpread.c69 int content_length; /* body length, iff got_content_length */ member
168 h->content_length = atol(hbp); in httpread_hdr_option_analyze()
169 if (h->content_length < 0 || h->content_length > h->max_bytes) { in httpread_hdr_option_analyze()
172 h->content_length); in httpread_hdr_option_analyze()
401 h->content_length); in httpread_read_handler()
455 if (h->got_content_length && h->content_length == 0) { in httpread_read_handler()
504 new_alloc_nbytes < (h->content_length + 1)) in httpread_read_handler()
505 new_alloc_nbytes = h->content_length + 1; in httpread_read_handler()
595 h->body_nbytes >= h->content_length) { in httpread_read_handler()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/
H A Dhttpread.c69 int content_length; /* body length, iff got_content_length */ member
168 h->content_length = atol(hbp); in httpread_hdr_option_analyze()
169 if (h->content_length < 0 || h->content_length > h->max_bytes) { in httpread_hdr_option_analyze()
172 h->content_length); in httpread_hdr_option_analyze()
401 h->content_length); in httpread_read_handler()
455 if (h->got_content_length && h->content_length == 0) { in httpread_read_handler()
504 new_alloc_nbytes < (h->content_length + 1)) in httpread_read_handler()
505 new_alloc_nbytes = h->content_length + 1; in httpread_read_handler()
595 h->body_nbytes >= h->content_length) { in httpread_read_handler()
[all...]
/third_party/curl/tests/libtest/
H A Dlib566.c33 double content_length = 3; in test() local
56 &content_length); in test()
60 fprintf(moo, "CL %.0f\n", content_length); in test()
H A Dlib599.c48 double content_length = 0.0; in test() local
87 &content_length); in test()
91 fprintf(moo, "CL %.0f\n", content_length); in test()
/third_party/node/deps/ngtcp2/nghttp3/lib/
H A Dnghttp3_http.c911 if (http->content_length != -1) { in http_request_on_header()
914 http->content_length = parse_uint(nv->value->base, nv->value->len); in http_request_on_header()
915 if (http->content_length == -1) { in http_request_on_header()
990 if (http->content_length != -1) { in http_response_on_header()
997 http->content_length = 0; in http_response_on_header()
1008 if (http->content_length != -1) { in http_response_on_header()
1011 http->content_length = parse_uint(nv->value->base, nv->value->len); in http_response_on_header()
1012 if (http->content_length == -1) { in http_response_on_header()
1385 http->content_length = -1; in nghttp3_http_on_request_headers()
1415 http->content_length in nghttp3_http_on_response_headers()
[all...]
/third_party/libwebsockets/lib/roles/cgi/
H A Dcgi-server.c487 !wsi->http.cgi->content_length && in lws_cgi_write_split_stdout_headers()
718 wsi->http.cgi->content_length = in lws_cgi_write_split_stdout_headers()
795 wsi->http.cgi->content_length); in lws_cgi_write_split_stdout_headers()
827 !wsi->http.cgi->content_length; in lws_cgi_write_split_stdout_headers()
866 wsi->http.cgi->content_length) in lws_cgi_write_split_stdout_headers()
966 if (cgi->content_length > cgi->content_length_seen) in lws_cgi_kill_terminated()
969 if (cgi->content_length) { in lws_cgi_kill_terminated()
984 if (!cgi->content_length) { in lws_cgi_kill_terminated()
1032 if (cgi->content_length > cgi->content_length_seen) in lws_cgi_kill_terminated()
1035 if (cgi->content_length) in lws_cgi_kill_terminated()
[all...]
H A Dprivate-lib-roles-cgi.h75 lws_filepos_t content_length; member
/third_party/nghttp2/third-party/llhttp/src/
H A Dhttp.c41 hasBody = parser->flags & F_CHUNKED || parser->content_length > 0; in llhttp__after_headers_complete()
85 } else if (parser->content_length == 0) { in llhttp__after_headers_complete()
/third_party/node/deps/llhttp/src/
H A Dhttp.c41 hasBody = parser->flags & F_CHUNKED || parser->content_length > 0; in llhttp__after_headers_complete()
85 } else if (parser->content_length == 0) { in llhttp__after_headers_complete()
H A Dllhttp.c678 state->content_length = 0; in llhttp__internal__c_update_content_length()
688 if (state->content_length > 0xffffffffffffffffULL / 16) { in llhttp__internal__c_mul_add_content_length()
692 state->content_length *= 16; in llhttp__internal__c_mul_add_content_length()
696 if (state->content_length > 0xffffffffffffffffULL - match) { in llhttp__internal__c_mul_add_content_length()
700 if (state->content_length < 0ULL - match) { in llhttp__internal__c_mul_add_content_length()
704 state->content_length += match; in llhttp__internal__c_mul_add_content_length()
716 return state->content_length == 0; in llhttp__internal__c_is_equal_content_length()
867 if (state->content_length > 0xffffffffffffffffULL / 10) { in llhttp__internal__c_mul_add_content_length_1()
871 state->content_length *= 10; in llhttp__internal__c_mul_add_content_length_1()
875 if (state->content_length > in llhttp__internal__c_mul_add_content_length_1()
[all...]
/third_party/nghttp2/src/
H A Dshrpx_downstream.cc492 content_length = -1; in parse_content_length()
503 if (content_length != -1) { in parse_content_length()
506 content_length = len; in parse_content_length()
762 if (req_.fs.content_length == -1) { in validate_request_recv_body_length()
766 if (req_.fs.content_length != req_.recv_body_length) { in validate_request_recv_body_length()
769 << req_.fs.content_length in validate_request_recv_body_length()
779 if (!expect_response_body() || resp_.fs.content_length == -1) { in validate_response_recv_body_length()
783 if (resp_.fs.content_length != resp_.recv_body_length) { in validate_response_recv_body_length()
786 << resp_.fs.content_length in validate_response_recv_body_length()
866 req_.fs.content_length in inspect_http1_request()
[all...]
H A Dshrpx_mruby_module_response.cc241 resp.fs.content_length = -1; in response_return()
243 auto content_length = util::make_string_ref_uint(balloc, vallen); in response_return() local
246 cl->value = content_length; in response_return()
249 content_length, false, http2::HD_CONTENT_LENGTH); in response_return()
252 resp.fs.content_length = vallen; in response_return()
H A Dshrpx_http_downstream_connection.cc555 req.fs.content_length == -1) { in push_request_headers()
722 (!req.http2_expect_body && req.fs.content_length == 0) || in push_request_headers()
973 if (resp.fs.content_length == 0) { in htp_hdrs_completecb()
975 } else if (resp.fs.content_length != -1) { in htp_hdrs_completecb()
995 resp.fs.content_length = -1; in htp_hdrs_completecb()
1024 resp.fs.content_length = -1; in htp_hdrs_completecb()
1029 if (resp.fs.content_length == -1) { in htp_hdrs_completecb()
H A Dshrpx_http2_upstream.cc342 auto content_length = req.fs.header(http2::HD_CONTENT_LENGTH); in on_request_headers() local
343 if (content_length) { in on_request_headers()
345 req.fs.content_length = util::parse_uint(content_length->value); in on_request_headers()
412 } else if (req.fs.content_length == -1) { in on_request_headers()
415 req.fs.content_length = 0; in on_request_headers()
733 req.fs.content_length = 0; in on_frame_send_callback()
1600 auto content_length = util::make_string_ref_uint(balloc, html.size()); in error_reply() local
1607 http2::make_nv_ls_nocopy("content-length", content_length), in error_reply()
2340 promised_req.fs.content_length in on_downstream_push_promise()
[all...]
H A Dshrpx_api_downstream_connection.cc145 auto content_length = util::make_string_ref_uint(balloc, buf.len); in send_reply() local
148 content_length, false, http2::HD_CONTENT_LENGTH); in send_reply()
232 // This works with req.fs.content_length == -1 in push_request_headers()
233 if (req.fs.content_length > in push_request_headers()
H A Dshrpx_downstream.h66 : content_length(-1), in FieldStore()
132 int64_t content_length; member in shrpx::FieldStore
/third_party/libwebsockets/lib/roles/http/
H A Dheader.c160 lws_filepos_t content_length, in lws_add_http_header_content_length()
166 n = lws_snprintf(b, sizeof(b) - 1, "%llu", (unsigned long long)content_length); in lws_add_http_header_content_length()
170 wsi->http.tx_content_length = content_length; in lws_add_http_header_content_length()
171 wsi->http.tx_content_remain = content_length; in lws_add_http_header_content_length()
174 lws_wsi_tag(wsi), (unsigned long long)content_length); in lws_add_http_header_content_length()
159 lws_add_http_header_content_length(struct lws *wsi, lws_filepos_t content_length, unsigned char **p, unsigned char *end) lws_add_http_header_content_length() argument
/third_party/mbedtls/tests/src/test_helpers/
H A Dssl_helpers.c147 if ((buf->content_length + input_len) > buf->capacity) { in mbedtls_test_ssl_buffer_put()
148 input_len = buf->capacity - buf->content_length; in mbedtls_test_ssl_buffer_put()
157 if (buf->start + buf->content_length < buf->capacity) { in mbedtls_test_ssl_buffer_put()
161 if (buf->start + buf->content_length + input_len in mbedtls_test_ssl_buffer_put()
163 overflow = (buf->start + buf->content_length + input_len) in mbedtls_test_ssl_buffer_put()
167 memcpy(buf->buffer + buf->start + buf->content_length, input, in mbedtls_test_ssl_buffer_put()
173 memcpy(buf->buffer + buf->start + buf->content_length - buf->capacity, in mbedtls_test_ssl_buffer_put()
177 buf->content_length += input_len; in mbedtls_test_ssl_buffer_put()
194 if (buf->content_length < output_len) { in mbedtls_test_ssl_buffer_get()
195 output_len = buf->content_length; in mbedtls_test_ssl_buffer_get()
[all...]
/third_party/node/deps/v8/src/torque/ls/
H A Dmessage-handler.cc46 const int content_length = std::atoi(line.substr(kContentLengthSize).c_str()); in ReadMessage() local
48 std::string content(content_length, ' '); in ReadMessage()
49 std::cin.read(&content[0], content_length); in ReadMessage()
/third_party/ffmpeg/libavformat/
H A Drtspdec.c191 if (request.content_length) { in rtsp_read_announce()
192 sdp = av_malloc(request.content_length + 1); in rtsp_read_announce()
197 if (ffurl_read_complete(rt->rtsp_hd, sdp, request.content_length) in rtsp_read_announce()
198 < request.content_length) { in rtsp_read_announce()
205 sdp[request.content_length] = '\0'; in rtsp_read_announce()
H A Drtsp.c1105 reply->content_length = strtol(p, NULL, 10); in ff_rtsp_parse_line()
1190 int ret, content_length, line_count, request; in ff_rtsp_read_reply() local
1254 content_length = reply->content_length; in ff_rtsp_read_reply()
1255 if (content_length > 0) { in ff_rtsp_read_reply()
1257 content = av_malloc(content_length + 1); in ff_rtsp_read_reply()
1260 if ((ret = ffurl_read_complete(rt->rtsp_hd, content, content_length)) != content_length) { in ff_rtsp_read_reply()
1264 content[content_length] = '\0'; in ff_rtsp_read_reply()
H A Drtsp.h130 int content_length; member

Completed in 31 milliseconds

12