Home
last modified time | relevance | path

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

/external/chromium-trace/trace-viewer/third_party/Paste/paste/
Dfileapp.py64 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 …]
Dcgiapp.py164 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)
Dgzipper.py47 self.content_length = None
87 content_length = self.buffer.tell()
88 CONTENT_LENGTH.update(self.headers, content_length)
Dwsgilib.py416 content_length = environ.get("CONTENT_LENGTH", '')
417 if content_length:
418 output.append(environ['wsgi.input'].read(int(content_length)))
Dhttpserver.py210 content_length = int(self.headers.get('Content-Length', '0'))
212 content_length = 0
214 rfile = LimitedLengthFile(ContinueHook(rfile, self.wfile.write), content_length)
220 rfile = LimitedLengthFile(rfile, content_length)
/external/jetty/src/java/org/eclipse/jetty/servlet/
DDefaultServlet.java863 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/chromium-trace/trace-viewer/third_party/WebOb/webob/
Dclient.py78 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
Dresponse.py196 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 …]
Drequest.py248 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 …]
Dexc.py266 del self.content_length
303 if self.content_length is not None:
304 del self.content_length
Dstatic.py59 content_length = stat.st_size,
/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()
403 h->content_length); in httpread_read_handler()
457 if (h->got_content_length && h->content_length == 0) { in httpread_read_handler()
506 new_alloc_nbytes < (h->content_length + 1)) in httpread_read_handler()
507 new_alloc_nbytes = h->content_length + 1; in httpread_read_handler()
594 h->body_nbytes >= h->content_length) { in httpread_read_handler()
616 ncopy = h->content_length - h->body_nbytes; in httpread_read_handler()
/external/lldb/source/Plugins/Process/gdb-remote/
DGDBRemoteCommunication.cpp366 size_t content_length = 0; in CheckForPacket() local
375 content_length = total_length = 1; // The command is one byte long... in CheckForPacket()
390 content_length = hash_pos - 1; in CheckForPacket()
397 content_length = std::string::npos; in CheckForPacket()
436 if (content_length == std::string::npos) in CheckForPacket()
445 assert (content_length <= m_bytes.size()); in CheckForPacket()
447 assert (content_length <= total_length); in CheckForPacket()
467 packet_str.assign (m_bytes, content_start, content_length); in CheckForPacket()
/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/chromium-trace/trace-viewer/third_party/WebOb/docs/pycon2011/
Dresponse_table.rst33 content_length x x content_length
Drequest_table.rst45 content_length content_type CommonRequestDes…
/external/jetty/src/java/org/eclipse/jetty/http/
DHttpGenerator.java492 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/skia/tools/skpdiff/
Dskpdiff_server.py491 content_length = int(self.headers['Content-length'])
492 request_data = json.loads(self.rfile.read(content_length))
/external/chromium-trace/trace-viewer/third_party/WebOb/docs/
Dfile-example.txt95 ... res.content_length = os.path.getsize(filename)
120 ... res.content_length = os.path.getsize(filename)
Dindex.txt114 for instance: ``req.accept_language``, ``req.content_length``,
Dnews.txt665 and that a correct ``req.content_length`` is present.
1138 * Avoid exceptions in ``req.content_length``, even if
Dreference.txt730 >>> res.content_length = 4
/external/jetty/src/java/org/eclipse/jetty/server/
DRequest.java304 int content_length = getContentLength(); in extractParameters() local
305 if (content_length != 0) in extractParameters()
350 if (content_length > maxFormContentSize && maxFormContentSize > 0) in extractParameters()
352 … throw new IllegalStateException("Form too large " + content_length + ">" + maxFormContentSize); in extractParameters()
357 …UrlEncoded.decodeTo(in,_baseParameters,encoding,content_length < 0?maxFormContentSize:-1,maxFormKe… in extractParameters()
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dorg.mortbay.jetty.server_6.1.23.v201004211559.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...