/external/chromium-trace/catapult/third_party/Paste/paste/ |
D | fileapp.py | 64 self.content_length = None 89 self.content_length = len(content) 107 return '"%s-%s"' % (self.last_modified, self.content_length) 146 (lower, upper) = (0, self.content_length - 1) 150 upper = upper or (self.content_length - 1) 151 if upper >= self.content_length or lower > upper: 155 self.content_length, RANGE(environ)) 158 content_length = upper - lower + 1 160 total_length = self.content_length) 161 CONTENT_LENGTH.update(headers, content_length) [all …]
|
D | cgiapp.py | 164 def __init__(self, stdin, content_length): argument 166 self.content_length = content_length 178 if not self.content_length: 181 text = self.stdin.read(self.content_length) 183 text = self.stdin.read(min(self.content_length, size)) 184 self.content_length -= len(text)
|
D | gzipper.py | 47 self.content_length = None 87 content_length = self.buffer.tell() 88 CONTENT_LENGTH.update(self.headers, content_length)
|
D | wsgilib.py | 416 content_length = environ.get("CONTENT_LENGTH", '') 417 if content_length: 418 output.append(environ['wsgi.input'].read(int(content_length)))
|
/external/jetty/src/java/org/eclipse/jetty/servlet/ |
D | DefaultServlet.java | 863 long content_length; in sendData() local 867 content_length=resource.length(); in sendData() 873 content_length=content.getContentLength(); in sendData() 895 if ( reqRanges == null || !reqRanges.hasMoreElements() || content_length<0) in sendData() 900 resource.writeTo(out,0,content_length); in sendData() 917 writeHeaders(response,content,content_length); in sendData() 922 writeHeaders(response,content,content_length); in sendData() 923 resource.writeTo(out,0,content_length); in sendData() 930 writeHeaders(response,content,written?-1:content_length); in sendData() 937 resource.writeTo(out,0,content_length); in sendData() [all …]
|
/external/webrtc/webrtc/examples/peerconnection/client/ |
D | peer_connection_client.cc | 296 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, ¬ification_data_, &content_length)) { in OnHangingGetRead() 388 bool ok = ParseServerResponse(notification_data_, content_length, in OnHangingGetRead() [all …]
|
D | peer_connection_client.h | 90 size_t* content_length); 102 bool ParseServerResponse(const std::string& response, size_t content_length,
|
/external/curl/tests/libtest/ |
D | lib566.c | 31 double content_length = 3; in test() local 52 &content_length); in test() 55 fprintf(moo, "CL: %.0f\n", content_length); in test()
|
D | lib599.c | 46 double content_length = 0.0; in test() local 81 &content_length); in test() 84 fprintf(moo, "CL: %.0f\n", content_length); in test()
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/awslambda/ |
D | layer1.py | 227 content_length = str(len(invoke_args)) 238 content_length = str(os.fstat(invoke_args.fileno()).st_size) 239 headers['Content-Length'] = content_length 486 content_length = str(len(function_zip)) 497 content_length = str(os.fstat(function_zip.fileno()).st_size) 498 headers['Content-Length'] = content_length
|
/external/chromium-trace/catapult/third_party/WebOb/webob/ |
D | client.py | 78 content_length = int(environ.get('CONTENT_LENGTH', '0')) 80 content_length = 0 83 if content_length: 84 body = environ['wsgi.input'].read(content_length) 87 headers['Content-Length'] = content_length
|
D | response.py | 196 body = fp.read(r.content_length or 0) 357 elif self.content_length is None: 358 self.content_length = len(body) 359 elif self.content_length != len(body): 363 % (self.content_length, len(body)) 379 self.content_length = len(value) 472 self.content_length = sum(len(chunk) for chunk in app_iter) 474 if self.content_length is not None: 475 self.content_length += len(text) 495 self.content_length = None [all …]
|
D | request.py | 248 r.content_length = fout.tell() 266 clen = self.content_length 290 self.content_length = None 318 content_length = converter( variable in BaseRequest 702 r = self.body_file.read(self.content_length) 713 self.content_length = None 716 self.content_length = len(value) 910 elif self.content_length is not None: 957 elif self.content_length is None: 966 self.body = self.body_file.read(self.content_length) [all …]
|
D | exc.py | 266 del self.content_length 303 if self.content_length is not None: 304 del self.content_length
|
/external/wpa_supplicant_8/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()
|
/external/chromium-trace/catapult/telemetry/telemetry/core/ |
D | memory_cache_http_server_unittest.py | 64 content_length = self._tab.EvaluateJavaScript( 66 self.assertEquals(content_length, str(content_length_response))
|
/external/google-breakpad/src/common/windows/ |
D | http_upload.cc | 199 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/autotest/client/common_lib/cros/fake_device_server/ |
D | common_util_unittest.py | 28 content_length = json_file.tell() 30 cherrypy.request.headers['Content-Length'] = content_length
|
/external/chromium-trace/catapult/third_party/gsutil/gslib/ |
D | gcs_json_media.py | 509 content_length = None 511 content_length = response.getheader('content-length') 525 if (content_length is not None and 526 long(bytes_read) != long(content_length)): 533 'bytes read.', bytes_read, content_length, request_uri)
|
/external/chromium-trace/catapult/third_party/webtest/webtest/ |
D | debugapp.py | 51 if req.content_length: 59 if status[:3] in ('204', '304') and not req.content_length:
|
/external/chromium-trace/catapult/third_party/WebOb/docs/pycon2011/ |
D | response_table.rst | 33 content_length x x content_length
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/glacier/ |
D | layer1.py | 815 content_length = str(len(archive)) 819 content_length = str(os.fstat(archive.fileno()).st_size) 822 'Content-Length': content_length}
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/wsgi/ |
D | service.py | 144 content_length = int(environ.get('CONTENT_LENGTH') or '0') 149 remote_info.request_type, environ['wsgi.input'].read(content_length))
|
/external/jetty/src/java/org/eclipse/jetty/http/ |
D | HttpGenerator.java | 492 HttpFields.Field content_length = null; in completeHeader() 511 content_length = field; in completeHeader() 515 content_length = null; in completeHeader() 669 … if (content_length == null && (isResponse() || _contentLength>0 || content_type ) && !_noContent) in completeHeader() 692 … if (content_length == null && isResponse() && _status >= 200 && _status != 204 && _status != 304) in completeHeader()
|
/external/chromium-trace/catapult/third_party/gsutil/gslib/tests/ |
D | test_ls.py | 387 content_length = int(m.group('num')) 388 self.assertGreater(content_length, 0) 389 self.assertLess(content_length, file_size)
|