Home
last modified time | relevance | path

Searched refs:_contentLength (Results 1 – 8 of 8) sorted by relevance

/external/jetty/src/java/org/eclipse/jetty/http/gzip/
DCompressedResponseWrapper.java52 private long _contentLength=-1; field in CompressedResponseWrapper
66 return _contentLength; in getContentLength()
190 _contentLength=length; in setContentLength()
193 else if (_noCompression && _contentLength>=0) in setContentLength()
196 if(_contentLength<Integer.MAX_VALUE) in setContentLength()
198 response.setContentLength((int)_contentLength); in setContentLength()
202 response.setHeader("Content-Length", Long.toString(_contentLength)); in setContentLength()
216 _contentLength=Long.parseLong(value); in addHeader()
266 _contentLength=-1; in reset()
357 if (_contentLength>=0) in setDeferredHeaders()
[all …]
/external/jetty/src/java/org/eclipse/jetty/http/
DHttpGenerator.java259 _contentLength =_contentWritten = response.length(); in sendResponse()
297 return _buffer.space()-(_contentLength == HttpTokens.CHUNKED_CONTENT?CHUNK_SPACE:0); in prepareUncheckedAddContent()
305 …return super.isBufferFull() || _bufferChunked || _bypass || (_contentLength == HttpTokens.CHUNKED… in isBufferFull()
389 _contentLength = HttpTokens.NO_CONTENT; in completeHeader()
414 _contentLength = HttpTokens.EOF_CONTENT; in completeHeader()
512 _contentLength = field.getLongValue(); in completeHeader()
514 … if (_contentLength < _contentWritten || _last && _contentLength != _contentWritten) in completeHeader()
522 …efix(MimeTypes.MULTIPART_BYTERANGES_BUFFER, field.getValueBuffer())) _contentLength = HttpTokens.S… in completeHeader()
558 … if (!_persistent && isResponse() && _contentLength == HttpTokens.UNKNOWN_CONTENT) in completeHeader()
559 _contentLength = HttpTokens.EOF_CONTENT; in completeHeader()
[all …]
DAbstractGenerator.java67 protected long _contentLength = HttpTokens.UNKNOWN_CONTENT; field in AbstractGenerator
119 _contentLength = HttpTokens.UNKNOWN_CONTENT; in reset()
151 _contentLength = HttpTokens.UNKNOWN_CONTENT; in resetBuffer()
246 _contentLength=HttpTokens.UNKNOWN_CONTENT; in setContentLength()
248 _contentLength=value; in setContentLength()
402 return _contentLength>=0 && _contentWritten>=_contentLength; in isAllContentWritten()
421 if (_contentLength >= 0 && _contentLength != _contentWritten && !_head) in complete()
424 … LOG.debug("ContentLength written=="+_contentWritten+" != contentLength=="+_contentLength); in complete()
DHttpParser.java83 protected long _contentLength; field in HttpParser
124 return _contentLength; in getContentLength()
163 return _contentLength==HttpTokens.CHUNKED_CONTENT; in isChunking()
264 if (_state == STATE_CONTENT && _contentPosition == _contentLength) in parseNext()
367 _contentLength=HttpTokens.UNKNOWN_CONTENT; in parseNext()
532 if (_contentLength != HttpTokens.CHUNKED_CONTENT ) in parseNext()
536 _contentLength=BufferUtil.toLong(value); in parseNext()
543 if (_contentLength <= 0) in parseNext()
544 _contentLength=HttpTokens.NO_CONTENT; in parseNext()
552 _contentLength=HttpTokens.CHUNKED_CONTENT; in parseNext()
[all …]
/external/xmlrpcpp/src/
DXmlRpcClient.cpp337 _contentLength = atoi(lp); in readHeader()
338 if (_contentLength <= 0) { in readHeader()
339 …error("Error in XmlRpcClient::readHeader: Invalid Content-length specified (%d).", _contentLength); in readHeader()
343 XmlRpcUtil::log(4, "client read content length: %d", _contentLength); in readHeader()
357 if (int(_response.length()) < _contentLength) { in readResponse()
364 if (int(_response.length()) < _contentLength) { in readResponse()
DXmlRpcServerConnection.cpp116 _contentLength = atoi(lp); in readHeader()
117 if (_contentLength <= 0) { in readHeader()
118 …rror("XmlRpcServerConnection::readHeader: Invalid Content-length specified (%d).", _contentLength); in readHeader()
122 …til::log(3, "XmlRpcServerConnection::readHeader: specified content length is %d.", _contentLength); in readHeader()
148 if (int(_request.length()) < _contentLength) { in readRequest()
156 if (int(_request.length()) < _contentLength) { in readRequest()
DXmlRpcClient.h116 int _contentLength; variable
DXmlRpcServerConnection.h86 int _contentLength; variable