Home
last modified time | relevance | path

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

/external/webrtc/webrtc/examples/peerconnection/client/
Dpeer_connection_client.cc296 size_t* content_length) { in ReadIntoBuffer() argument
309 if (GetHeaderValue(*data, i, "\r\nContent-Length: ", content_length)) { in ReadIntoBuffer()
310 size_t total_response_size = (i + 4) + *content_length; in ReadIntoBuffer()
333 size_t content_length = 0; in OnRead() local
334 if (ReadIntoBuffer(socket, &control_data_, &content_length)) { in OnRead()
336 bool ok = ParseServerResponse(control_data_, content_length, &peer_id, in OnRead()
346 if (content_length) { in OnRead()
385 size_t content_length = 0; in OnHangingGetRead() local
386 if (ReadIntoBuffer(socket, &notification_data_, &content_length)) { in OnHangingGetRead()
388 bool ok = ParseServerResponse(notification_data_, content_length, in OnHangingGetRead()
[all …]
Dpeer_connection_client.h90 size_t* content_length);
102 bool ParseServerResponse(const std::string& response, size_t content_length,
/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/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/google-breakpad/src/common/windows/
Dhttp_upload.cc199 wchar_t content_length[32]; in ReadResponse() local
200 DWORD content_length_size = sizeof(content_length); in ReadResponse()
205 static_cast<LPVOID>(&content_length), in ReadResponse()
208 claimed_size = wcstol(content_length, NULL, 10); in ReadResponse()
/external/dynamic_depth/internal/xmpmeta/
Dxmp_parser.cc90 const size_t content_length = end - header_length; in ParseFirstValidXMPSection() local
96 if (content_length > INT_MAX) { in ParseFirstValidXMPSection()
97 LOG(ERROR) << "First XMP section too large, size: " << content_length; in ParseFirstValidXMPSection()
101 content_start, static_cast<int>(content_length), nullptr, nullptr, 0); in ParseFirstValidXMPSection()
/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/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',
Dtest_xmlrpc.py782 self.__class__.content_length = int(self.headers["content-length"])
807 a = self.RequestHandler.content_length
810 b = self.RequestHandler.content_length
Dtest_urllib2_localnet.py409 content_length = self.headers['Content-Length']
410 post_data = self.rfile.read(int(content_length))
/external/webrtc/webrtc/examples/peerconnection/server/
Ddata_socket.h85 size_t content_length() const { return content_length_; } in content_length() function
Dpeer_channel.cc175 return (ds->method() == DataSocket::POST && ds->content_length() > 0) || in IsPeerConnection()
/external/libevent/
Dhttp.c503 size_t content_length) in evhttp_maybe_add_content_length_header() argument
509 EV_SIZE_ARG(content_length)); in evhttp_maybe_add_content_length_header()
2116 const char *content_length; in evhttp_get_body_length() local
2119 content_length = evhttp_find_header(headers, "Content-Length"); in evhttp_get_body_length()
2122 if (content_length == NULL && connection == NULL) in evhttp_get_body_length()
2124 else if (content_length == NULL && in evhttp_get_body_length()
2131 } else if (content_length == NULL) { in evhttp_get_body_length()
2135 ev_int64_t ntoread = evutil_strtoll(content_length, &endp, 10); in evhttp_get_body_length()
2136 if (*content_length == '\0' || *endp != '\0' || ntoread < 0) { in evhttp_get_body_length()
2138 __func__, content_length)); in evhttp_get_body_length()
/external/webrtc/webrtc/base/
Dhttpcommon.cc488 size_t content_length = 0; in setDocumentAndLength() local
489 if (this->document->GetAvailable(&content_length)) { in setDocumentAndLength()
491 sprintfn(buffer, sizeof(buffer), "%d", content_length); in setDocumentAndLength()
/external/python/cpython3/Lib/http/
Dclient.py1257 content_length = self._get_content_length(body, method)
1258 if content_length is None:
1265 self.putheader('Content-Length', str(content_length))
/external/python/httplib2/tests/
D__init__.py136 content_length = int(content_length_string)
137 msg.body = msg.body_raw = buf.read(content_length)
/external/python/cpython3/Lib/test/
Dtest_httplib.py163 self.content_length = None
167 self.content_length = kv[1].strip()
180 conn._buffer.content_length, b'0',
196 conn._buffer.content_length, None,
209 conn._buffer.content_length, b'0',
220 conn._buffer.content_length, b'1',
Dtest_urllib2_localnet.py412 content_length = self.headers["Content-Length"]
413 post_data = self.rfile.read(int(content_length))
Dtest_xmlrpc.py1095 self.__class__.content_length = int(self.headers["content-length"])
1120 a = self.RequestHandler.content_length
1123 b = self.RequestHandler.content_length
/external/python/cpython3/Lib/urllib/
Drequest.py1254 content_length = self._get_content_length(request)
1255 if content_length is not None:
1257 'Content-length', str(content_length))