Home
last modified time | relevance | path

Searched refs:content_length (Results 1 – 25 of 38) sorted by relevance

12

/external/google-breakpad/src/tools/windows/converter_exe/
Dhttp_download.cc275 DWORD content_length = 0; in Download() local
277 http_client->GetContentLength(request.get(), &content_length); in Download()
278 if (content_length == HttpClient::kUnknownContentLength) { in Download()
281 buffer_size = content_length; in Download()
284 if (content_length != 0) { in Download()
290 if (content_length == HttpClient::kUnknownContentLength in Download()
315 content_length, in Download()
Dwininet_client.cc76 DWORD* content_length) const;
210 DWORD* content_length) const { in GetContentLength()
212 assert(content_length); in GetContentLength()
221 *content_length = kUnknownContentLength; in GetContentLength()
223 *content_length = wcstol(content_length_string, NULL, 10); in GetContentLength()
Dwinhttp_client.cc77 DWORD* content_length) const;
210 DWORD* content_length) const { in GetContentLength()
212 assert(content_length); in GetContentLength()
221 *content_length = kUnknownContentLength; in GetContentLength()
223 *content_length = in GetContentLength()
Dhttp_client.h84 DWORD* content_length) const = 0;
/external/webrtc/examples/peerconnection/client/
Dpeer_connection_client.cc286 size_t* content_length) { in ReadIntoBuffer() argument
299 if (GetHeaderValue(*data, i, "\r\nContent-Length: ", content_length)) { in ReadIntoBuffer()
300 size_t total_response_size = (i + 4) + *content_length; in ReadIntoBuffer()
323 size_t content_length = 0; in OnRead() local
324 if (ReadIntoBuffer(socket, &control_data_, &content_length)) { in OnRead()
327 ParseServerResponse(control_data_, content_length, &peer_id, &eoh); in OnRead()
336 if (content_length) { in OnRead()
376 size_t content_length = 0; in OnHangingGetRead() local
377 if (ReadIntoBuffer(socket, &notification_data_, &content_length)) { in OnHangingGetRead()
380 ParseServerResponse(notification_data_, content_length, &peer_id, &eoh); in OnHangingGetRead()
[all …]
Dpeer_connection_client.h95 size_t* content_length);
110 size_t content_length,
/external/curl/tests/libtest/
Dlib566.c31 double content_length = 3; in test() local
53 &content_length); in test()
56 fprintf(moo, "CL: %.0f\n", content_length); in test()
Dlib599.c46 double content_length = 0.0; in test() local
82 &content_length); in test()
85 fprintf(moo, "CL: %.0f\n", content_length); in test()
/external/wpa_supplicant_8/src/wps/
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()
617 ncopy = h->content_length - h->body_nbytes; in httpread_read_handler()
/external/icing/icing/index/
Dindex-processor_benchmark.cc87 DocumentProto CreateDocumentWithOneProperty(int content_length) { in CreateDocumentWithOneProperty() argument
91 .AddStringProperty("p0", std::string(content_length, 'A')) in CreateDocumentWithOneProperty()
95 DocumentProto CreateDocumentWithTenProperties(int content_length) { in CreateDocumentWithTenProperties() argument
96 int property_length = content_length / 10; in CreateDocumentWithTenProperties()
113 DocumentProto CreateDocumentWithDiacriticLetters(int content_length) { in CreateDocumentWithDiacriticLetters() argument
115 while (content.length() < content_length) { in CreateDocumentWithDiacriticLetters()
125 DocumentProto CreateDocumentWithHiragana(int content_length) { in CreateDocumentWithHiragana() argument
127 while (content.length() < content_length) { in CreateDocumentWithHiragana()
/external/libwebsockets/lib/roles/cgi/
Dcgi-server.c439 !wsi->http.cgi->content_length && in lws_cgi_write_split_stdout_headers()
661 wsi->http.cgi->content_length = in lws_cgi_write_split_stdout_headers()
738 wsi->http.cgi->content_length); in lws_cgi_write_split_stdout_headers()
770 !wsi->http.cgi->content_length; in lws_cgi_write_split_stdout_headers()
809 wsi->http.cgi->content_length) in lws_cgi_write_split_stdout_headers()
910 if (cgi->content_length > cgi->content_length_seen) in lws_cgi_kill_terminated()
913 if (cgi->content_length) { in lws_cgi_kill_terminated()
931 if (!cgi->content_length) { in lws_cgi_kill_terminated()
981 if (cgi->content_length > cgi->content_length_seen) in lws_cgi_kill_terminated()
984 if (cgi->content_length) in lws_cgi_kill_terminated()
[all …]
Dprivate-lib-roles-cgi.h74 lws_filepos_t content_length; member
/external/perfetto/src/trace_processor/rpc/
Dhttpd.cc103 size_t content_length = 0) { argument
113 if (content_length != kOmitContentLength) {
115 Append(response, std::to_string(content_length));
120 if (content_length > 0 && content_length != kOmitContentLength)
121 sock->Send(content, content_length); // Send response payload.
/external/autotest/client/common_lib/cros/fake_device_server/
Dcommon_util_unittest.py28 content_length = json_file.tell()
30 cherrypy.request.headers['Content-Length'] = content_length
/external/dynamic_depth/internal/xmpmeta/
Dxmp_parser.cc91 const size_t content_length = end - header_length; in ParseFirstValidXMPSection() local
97 if (content_length > INT_MAX) { in ParseFirstValidXMPSection()
98 LOG(ERROR) << "First XMP section too large, size: " << content_length; in ParseFirstValidXMPSection()
102 content_start, static_cast<int>(content_length), nullptr, nullptr, 0); in ParseFirstValidXMPSection()
/external/libwebsockets/lib/roles/http/
Dheader.c127 lws_filepos_t content_length, in lws_add_http_header_content_length() argument
133 n = lws_snprintf(b, sizeof(b) - 1, "%llu", (unsigned long long)content_length); in lws_add_http_header_content_length()
137 wsi->http.tx_content_length = content_length; in lws_add_http_header_content_length()
138 wsi->http.tx_content_remain = content_length; in lws_add_http_header_content_length()
141 wsi, (unsigned long long)content_length); in lws_add_http_header_content_length()
/external/llvm-project/lldb/source/Plugins/Process/gdb-remote/
DGDBRemoteCommunication.cpp441 size_t content_length = in DecompressPacket() local
469 content_length = hash_mark_idx - content_start; in DecompressPacket()
516 unescaped_content.reserve(content_length); in DecompressPacket()
665 size_t content_length = 0; in CheckForPacket() local
682 content_length = total_length = 1; // The command is one byte long... in CheckForPacket()
700 content_length = hash_pos - 1; in CheckForPacket()
706 content_length = std::string::npos; in CheckForPacket()
740 if (content_length == std::string::npos) { in CheckForPacket()
746 assert(content_length <= m_bytes.size()); in CheckForPacket()
748 assert(content_length <= total_length); in CheckForPacket()
[all …]
/external/google-breakpad/src/common/windows/
Dhttp_upload.cc168 wchar_t content_length[32]; in ReadResponse() local
169 DWORD content_length_size = sizeof(content_length); in ReadResponse()
174 static_cast<LPVOID>(&content_length), in ReadResponse()
177 claimed_size = wcstol(content_length, NULL, 10); in ReadResponse()
/external/libcups/cgi-bin/
Dvar.c965 char *content_length, /* Length of input data (string) */ in cgi_initialize_post() local
977 content_length = getenv("CONTENT_LENGTH"); in cgi_initialize_post()
978 if (content_length == NULL || atoi(content_length) <= 0) in cgi_initialize_post()
985 length = (size_t)strtol(content_length, NULL, 10); in cgi_initialize_post()
/external/webrtc/examples/peerconnection/server/
Ddata_socket.h80 size_t content_length() const { return content_length_; } in content_length() function
/external/libwebsockets/plugins/
Dprotocol_esp32_lws_scan.c76 long content_length; member
518 vhd->content_length); in callback_esplws_scan()
1149 vhd->content_length = atoi(pp); in callback_esplws_scan()
1150 if (vhd->content_length <= 0 || in callback_esplws_scan()
1151 vhd->content_length > vhd->part->size) in callback_esplws_scan()
/external/python/cpython2/Lib/test/
Dtest_httplib.py120 self.content_length = None
124 self.content_length = kv[1].strip()
137 conn._buffer.content_length, '0',
153 conn._buffer.content_length, None,
166 conn._buffer.content_length, '0',
177 conn._buffer.content_length, '1',
/external/libevent/
Dhttp.c515 size_t content_length) in evhttp_maybe_add_content_length_header() argument
521 EV_SIZE_ARG(content_length)); in evhttp_maybe_add_content_length_header()
2162 const char *content_length; in evhttp_get_body_length() local
2165 content_length = evhttp_find_header(headers, "Content-Length"); in evhttp_get_body_length()
2168 if (content_length == NULL && connection == NULL) in evhttp_get_body_length()
2170 else if (content_length == NULL && in evhttp_get_body_length()
2173 } else if (content_length == NULL) { in evhttp_get_body_length()
2177 ev_int64_t ntoread = evutil_strtoll(content_length, &endp, 10); in evhttp_get_body_length()
2178 if (*content_length == '\0' || *endp != '\0' || ntoread < 0) { in evhttp_get_body_length()
2180 __func__, content_length)); in evhttp_get_body_length()
/external/libwebsockets/include/libwebsockets/
Dlws-http.h592 lws_filepos_t content_length,
/external/python/cpython3/Lib/http/
Dclient.py1283 content_length = self._get_content_length(body, method)
1284 if content_length is None:
1291 self.putheader('Content-Length', str(content_length))

12