Searched refs:content_length (Results 1 – 24 of 24) sorted by relevance
64 self.content_length = None89 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 + 1160 total_length = self.content_length)161 CONTENT_LENGTH.update(headers, content_length)[all …]
164 def __init__(self, stdin, content_length): argument166 self.content_length = content_length178 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)
47 self.content_length = None87 content_length = self.buffer.tell()88 CONTENT_LENGTH.update(self.headers, content_length)
416 content_length = environ.get("CONTENT_LENGTH", '')417 if content_length:418 output.append(environ['wsgi.input'].read(int(content_length)))
210 content_length = int(self.headers.get('Content-Length', '0'))212 content_length = 0214 rfile = LimitedLengthFile(ContinueHook(rfile, self.wfile.write), content_length)220 rfile = LimitedLengthFile(rfile, content_length)
863 long content_length; in sendData() local867 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 …]
78 content_length = int(environ.get('CONTENT_LENGTH', '0'))80 content_length = 083 if content_length:84 body = environ['wsgi.input'].read(content_length)87 headers['Content-Length'] = content_length
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 …]
248 r.content_length = fout.tell()266 clen = self.content_length290 self.content_length = None318 content_length = converter( variable in BaseRequest702 r = self.body_file.read(self.content_length)713 self.content_length = None716 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 …]
266 del self.content_length303 if self.content_length is not None:304 del self.content_length
59 content_length = stat.st_size,
69 int content_length; /* body length, iff got_content_length */ member168 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()
366 size_t content_length = 0; in CheckForPacket() local375 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()
199 wchar_t content_length[32]; in ReadResponse() local200 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()
33 content_length x x content_length
45 content_length content_type CommonRequestDes…
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()
491 content_length = int(self.headers['Content-length'])492 request_data = json.loads(self.rfile.read(content_length))
95 ... res.content_length = os.path.getsize(filename)120 ... res.content_length = os.path.getsize(filename)
114 for instance: ``req.accept_language``, ``req.content_length``,
665 and that a correct ``req.content_length`` is present.1138 * Avoid exceptions in ``req.content_length``, even if
730 >>> res.content_length = 4
304 int content_length = getContentLength(); in extractParameters() local305 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()
META-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...