public interface ContentProvider extends Iterable<ByteBuffer>
ContentProvider provides a source of request content.
Implementations should return an
Iterator over the request content.
If the request content comes from a source that needs to be closed (for
InputStream), then the iterator implementation class
Closeable and will be closed when the request is
completed (either successfully or failed).
ContentProvider provides a
length of the content
If the length is positive, it typically overrides any
header set by applications; if the length is negative, it typically removes
Content-Length header set by applications, resulting in chunked
Transfer-Encoding: chunked) being sent to the server.
|Modifier and Type||Interface and Description|
An extension of
Copyright © 1995–2017 Webtide. All rights reserved.