/third_party/boost/libs/beast/test/beast/http/ |
D | fields.cpp | 524 BEAST_EXPECT(req.count(field::content_length) == 0); in testPreparePayload() 527 req.set(field::content_length, "0"); in testPreparePayload() 531 BEAST_EXPECT(req.count(field::content_length) == 0); in testPreparePayload() 536 BEAST_EXPECT(req.count(field::content_length) == 0); in testPreparePayload() 541 BEAST_EXPECT(req.count(field::content_length) == 0); in testPreparePayload() 553 BEAST_EXPECT(req[field::content_length] == "50"); in testPreparePayload() 556 req.set(field::content_length, "0"); in testPreparePayload() 559 BEAST_EXPECT(req[field::content_length] == "50"); in testPreparePayload() 564 BEAST_EXPECT(req[field::content_length] == "50"); in testPreparePayload() 575 BEAST_EXPECT(req[field::content_length] == "0"); in testPreparePayload() [all …]
|
D | parser.cpp | 130 BEAST_EXPECT(p.content_length() == boost::none); in testParse() 157 BEAST_EXPECT(p.content_length() == boost::none); in testParse() 192 BEAST_EXPECT(p.content_length() == boost::none); in testParse() 280 BEAST_EXPECT(p.content_length() && in testParse() 281 *p.content_length() == 5); in testParse()
|
/third_party/nghttp2/lib/ |
D | nghttp2_http.c | 194 if (stream->content_length != -1) { in http_request_on_header() 197 stream->content_length = parse_uint(nv->value->base, nv->value->len); in http_request_on_header() 198 if (stream->content_length == -1) { in http_request_on_header() 256 if (stream->content_length != -1) { in http_response_on_header() 263 stream->content_length = 0; in http_response_on_header() 274 if (stream->content_length != -1) { in http_response_on_header() 277 stream->content_length = parse_uint(nv->value->base, nv->value->len); in http_response_on_header() 278 if (stream->content_length == -1) { in http_response_on_header() 402 stream->content_length = -1; in nghttp2_http_on_request_headers() 424 stream->content_length = -1; in nghttp2_http_on_request_headers() [all …]
|
/third_party/node/deps/nghttp2/lib/ |
D | nghttp2_http.c | 194 if (stream->content_length != -1) { in http_request_on_header() 197 stream->content_length = parse_uint(nv->value->base, nv->value->len); in http_request_on_header() 198 if (stream->content_length == -1) { in http_request_on_header() 256 if (stream->content_length != -1) { in http_response_on_header() 263 stream->content_length = 0; in http_response_on_header() 274 if (stream->content_length != -1) { in http_response_on_header() 277 stream->content_length = parse_uint(nv->value->base, nv->value->len); in http_response_on_header() 278 if (stream->content_length == -1) { in http_response_on_header() 402 stream->content_length = -1; in nghttp2_http_on_request_headers() 424 stream->content_length = -1; in nghttp2_http_on_request_headers() [all …]
|
/third_party/libsoup/libsoup/ |
D | soup-request-data.c | 43 gsize content_length; member 114 buf = g_base64_decode_inplace ((gchar*) buf, &data->priv->content_length); in soup_request_data_send() 116 data->priv->content_length = decoded_length; in soup_request_data_send() 119 buf, data->priv->content_length, in soup_request_data_send() 132 return data->priv->content_length; in soup_request_data_get_content_length()
|
/third_party/curl/tests/libtest/ |
D | lib566.c | 31 double content_length = 3; in test() local 53 &content_length); in test() 56 fprintf(moo, "CL %.0f\n", content_length); in test()
|
D | lib599.c | 46 double content_length = 0.0; in test() local 82 &content_length); in test() 85 fprintf(moo, "CL %.0f\n", content_length); in test()
|
/third_party/boost/libs/beast/test/bench/parser/nodejs-parser/ |
D | http_parser.c | 726 parser->content_length = ULLONG_MAX; in http_parser_execute() 761 parser->content_length = ULLONG_MAX; in http_parser_execute() 959 parser->content_length = ULLONG_MAX; in http_parser_execute() 1477 parser->content_length = ch - '0'; in http_parser_execute() 1576 t = parser->content_length; in http_parser_execute() 1581 if (UNLIKELY((ULLONG_MAX - 10) / 10 < parser->content_length)) { in http_parser_execute() 1587 parser->content_length = t; in http_parser_execute() 1843 (parser->content_length > 0 && parser->content_length != ULLONG_MAX); in http_parser_execute() 1859 if (parser->content_length == 0) { in http_parser_execute() 1863 } else if (parser->content_length != ULLONG_MAX) { in http_parser_execute() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/ |
D | httpread.c | 69 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() 617 ncopy = h->content_length - h->body_nbytes; in httpread_read_handler()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/ |
D | httpread.c | 69 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() 617 ncopy = h->content_length - h->body_nbytes; in httpread_read_handler()
|
/third_party/nghttp2/src/ |
D | asio_client_response.cc | 45 int64_t response::content_length() const { return impl_->content_length(); } in content_length() function in nghttp2::asio_http2::client::response
|
D | asio_client_response_impl.h | 50 void content_length(int64_t n); 51 int64_t content_length() const;
|
D | asio_client_response_impl.cc | 48 void response_impl::content_length(int64_t n) { content_length_ = n; } in content_length() function in nghttp2::asio_http2::client::response_impl 50 int64_t response_impl::content_length() const { return content_length_; } in content_length() function in nghttp2::asio_http2::client::response_impl
|
D | shrpx_mruby_module_response.cc | 241 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()
|
D | shrpx_downstream.cc | 482 content_length = -1; in parse_content_length() 493 if (content_length != -1) { in parse_content_length() 496 content_length = len; in parse_content_length() 752 if (req_.fs.content_length == -1) { in validate_request_recv_body_length() 756 if (req_.fs.content_length != req_.recv_body_length) { in validate_request_recv_body_length() 759 << req_.fs.content_length in validate_request_recv_body_length() 769 if (!expect_response_body() || resp_.fs.content_length == -1) { in validate_response_recv_body_length() 773 if (resp_.fs.content_length != resp_.recv_body_length) { in validate_response_recv_body_length() 776 << resp_.fs.content_length in validate_response_recv_body_length() 856 req_.fs.content_length = -1; in inspect_http1_request() [all …]
|
/third_party/boost/libs/beast/test/doc/ |
D | http_10_custom_parser.cpp | 125 content_length, // Content length if known, else `boost::none` 260 boost::optional<std::uint64_t> const& content_length, in on_body_init_impl() argument 263 boost::ignore_unused(content_length); in on_body_init_impl()
|
D | exemplars.cpp | 142 boost::optional<std::uint64_t> const& content_length, in init() 145 boost::ignore_unused(content_length); in init()
|
/third_party/libwebsockets/lib/roles/cgi/ |
D | cgi-server.c | 485 !wsi->http.cgi->content_length && in lws_cgi_write_split_stdout_headers() 716 wsi->http.cgi->content_length = in lws_cgi_write_split_stdout_headers() 793 wsi->http.cgi->content_length); in lws_cgi_write_split_stdout_headers() 825 !wsi->http.cgi->content_length; in lws_cgi_write_split_stdout_headers() 864 wsi->http.cgi->content_length) in lws_cgi_write_split_stdout_headers() 963 if (cgi->content_length > cgi->content_length_seen) in lws_cgi_kill_terminated() 966 if (cgi->content_length) { in lws_cgi_kill_terminated() 981 if (!cgi->content_length) { in lws_cgi_kill_terminated() 1029 if (cgi->content_length > cgi->content_length_seen) in lws_cgi_kill_terminated() 1032 if (cgi->content_length) in lws_cgi_kill_terminated() [all …]
|
/third_party/nghttp2/third-party/llhttp/src/ |
D | http.c | 41 hasBody = parser->flags & F_CHUNKED || parser->content_length > 0; in llhttp__after_headers_complete() 83 } else if (parser->content_length == 0) { in llhttp__after_headers_complete()
|
/third_party/node/deps/llhttp/src/ |
D | http.c | 41 hasBody = parser->flags & F_CHUNKED || parser->content_length > 0; in llhttp__after_headers_complete() 83 } else if (parser->content_length == 0) { in llhttp__after_headers_complete()
|
/third_party/cef/tools/ |
D | crash_server.py | 271 content_length = int(self.headers[ 273 if content_length > 0: 274 request_body = self.rfile.read(content_length)
|
/third_party/gstreamer/gstplugins_good/gst/multipart/ |
D | multipartdemux.c | 194 multipart->content_length = -1; in gst_multipart_demux_init() 479 multipart->boundary, multipart->mime_type, multipart->content_length); in multipart_parse_header() 495 multipart->content_length = in multipart_parse_header() 530 if (multipart->content_length >= 0) { in multipart_find_boundary() 532 len = multipart->content_length; in multipart_find_boundary() 651 multipart->content_length = -1; in gst_multipart_demux_chain() 741 multipart->content_length = -1; in gst_multipart_demux_change_state()
|
/third_party/libwebsockets/lib/roles/http/ |
D | header.c | 155 lws_filepos_t content_length, in lws_add_http_header_content_length() argument 161 n = lws_snprintf(b, sizeof(b) - 1, "%llu", (unsigned long long)content_length); in lws_add_http_header_content_length() 165 wsi->http.tx_content_length = content_length; in lws_add_http_header_content_length() 166 wsi->http.tx_content_remain = content_length; in lws_add_http_header_content_length() 169 lws_wsi_tag(wsi), (unsigned long long)content_length); in lws_add_http_header_content_length()
|
/third_party/cef/libcef/browser/net_service/ |
D | stream_reader_url_loader.cc | 618 int64_t content_length = expected_content_length; in HeadersComplete() local 622 &content_length, &extra_headers); in HeadersComplete() 635 status_code, status_text, mime_type, charset, content_length, in HeadersComplete() 639 if (content_length >= 0) in HeadersComplete() 640 pending_response->content_length = content_length; in HeadersComplete() 688 pending_response->content_length = pending_response->encoded_body_length = in ContinueWithResponseHeaders()
|
/third_party/glib/gio/win32/ |
D | gwinhttpfile.c | 475 wchar_t *content_length; in g_winhttp_file_query_info() local 540 content_length = NULL; in g_winhttp_file_query_info() 545 &content_length, in g_winhttp_file_query_info() 553 if (swscanf (content_length, gint64_format_w, &cl, &n) == 1 && in g_winhttp_file_query_info() 554 n == wcslen (content_length)) in g_winhttp_file_query_info() 557 g_free (content_length); in g_winhttp_file_query_info()
|