Home
last modified time | relevance | path

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

/external/v8/src/
Ddebug-agent.cc217 int content_length = 0; in ReceiveMessage() local
275 content_length = 10 * content_length + (value[i] - '0'); in ReceiveMessage()
284 if (content_length == 0) { in ReceiveMessage()
289 char* buffer = NewArray<char>(content_length + 1); in ReceiveMessage()
290 received = ReceiveAll(conn, buffer, content_length); in ReceiveMessage()
291 if (received < content_length) { in ReceiveMessage()
295 buffer[content_length] = '\0'; in ReceiveMessage()
/external/wpa_supplicant_6/wpa_supplicant/src/wps/
Dhttpread.c87 int content_length; /* body length, iff got_content_length */ member
205 h->content_length = atol(hbp); in httpread_hdr_option_analyze()
434 h->content_length); in httpread_read_handler()
488 if (h->got_content_length && h->content_length == 0) { in httpread_read_handler()
537 new_alloc_nbytes < (h->content_length + 1)) in httpread_read_handler()
538 new_alloc_nbytes = h->content_length + 1; in httpread_read_handler()
602 h->body_nbytes >= h->content_length) { in httpread_read_handler()
626 ncopy = h->content_length - h->body_nbytes; in httpread_read_handler()
/external/chromium/net/tools/fetch/
Dhttp_server_response_info.h15 : status(200), content_length(0), connection_close(false) { in HttpServerResponseInfo()
31 int content_length; variable
Dhttp_listen_socket.cc225 if (info->content_length > 0) in Respond()
226 response += "Content-length: " + IntToString(info->content_length) + in Respond()
Dhttp_session.cc31 response_info.content_length = data.length(); in OnRequest()
/external/bluetooth/glib/gio/win32/
Dgwinhttpfile.c478 wchar_t *content_length; in g_winhttp_file_query_info() local
535 content_length = NULL; in g_winhttp_file_query_info()
540 &content_length, in g_winhttp_file_query_info()
546 if (swscanf (content_length, L"%I64d%n", &cl, &n) == 1 && in g_winhttp_file_query_info()
547 n == wcslen (content_length)) in g_winhttp_file_query_info()
550 g_free (content_length); in g_winhttp_file_query_info()
/external/chromium/net/http/
Dpartial_data.cc206 int64 content_length = headers->GetContentLength(); in ResponseHeadersOK() local
207 if (content_length < 0 || content_length != end - start + 1) in ResponseHeadersOK()
Dhttp_cache_transaction.cc1729 int64 content_length = headers->GetContentLength(); in HistogramHeaders() local
1731 if (content_length > 0) in HistogramHeaders()
Dhttp_cache_unittest.cc771 std::string content_length = StringPrintf("Content-Length: %d\n", len); in RangeHandler() local
773 content_length.size(), content_length); in RangeHandler()
818 int64 content_length = headers->GetContentLength(); in Verify206Response() local
821 if (content_length != length) in Verify206Response()
/external/qemu/proxy/
Dproxy_http_rewriter.c615 char* content_length; in rewrite_connection_get_body_length() local
643 content_length = http_request_find_header(r, "Content-Length"); in rewrite_connection_get_body_length()
644 if (content_length != NULL) { in rewrite_connection_get_body_length()
646 int64_t body_len = strtoll( content_length, &end, 10 ); in rewrite_connection_get_body_length()
647 if (*end != '\0' || *content_length == '\0' || body_len < 0) { in rewrite_connection_get_body_length()
648 PROXY_LOG("%s: bad content length: %s", root->name, content_length); in rewrite_connection_get_body_length()
/external/chromium/net/url_request/
Durl_request_job.cc419 std::string content_length; in NotifyHeadersComplete() local
420 request_->GetResponseHeaderByName("content-length", &content_length); in NotifyHeadersComplete()
421 if (!content_length.empty()) in NotifyHeadersComplete()
422 expected_content_size_ = StringToInt64(content_length); in NotifyHeadersComplete()
Durl_request_unittest.cc691 const size_t content_length = last_byte_position - first_byte_position + 1; in TEST_F() local
709 EXPECT_EQ(static_cast<int>(content_length), d.bytes_received()); in TEST_F()
732 const size_t content_length = last_byte_position - first_byte_position + 1; in TEST_F() local
749 EXPECT_EQ(static_cast<int>(content_length), d.bytes_received()); in TEST_F()
/external/chromium/net/tools/flip_server/
Dbalsa_headers.cc591 const base::StringPiece content_length(kContentLength, in SetContentLength() local
602 RemoveAllOfHeader(content_length); in SetContentLength()
616 AppendHeader(content_length, length_str); in SetContentLength()
628 const base::StringPiece content_length(kContentLength, in SetChunkEncoding() local
630 RemoveAllOfHeader(content_length); in SetChunkEncoding()
Dbalsa_headers.h1106 size_t content_length() const { return content_length_; } in content_length() function
/external/chromium/third_party/libevent/
Dhttp.c446 long content_length) in evhttp_maybe_add_content_length_header() argument
451 evutil_snprintf(len, sizeof(len), "%ld", content_length); in evhttp_maybe_add_content_length_header()
1534 const char *content_length; in evhttp_get_body_length() local
1537 content_length = evhttp_find_header(headers, "Content-Length"); in evhttp_get_body_length()
1540 if (content_length == NULL && connection == NULL) in evhttp_get_body_length()
1542 else if (content_length == NULL && in evhttp_get_body_length()
1549 } else if (content_length == NULL) { in evhttp_get_body_length()
1553 ev_int64_t ntoread = evutil_strtoll(content_length, &endp, 10); in evhttp_get_body_length()
1554 if (*content_length == '\0' || *endp != '\0' || ntoread < 0) { in evhttp_get_body_length()
1556 __func__, content_length)); in evhttp_get_body_length()