Class InputStreamRequestContent

java.lang.Object
org.eclipse.jetty.client.util.AbstractRequestContent
org.eclipse.jetty.client.util.InputStreamRequestContent
All Implemented Interfaces:
Request.Content
Direct Known Subclasses:
ProxyServlet.ProxyInputStreamRequestContent

public class InputStreamRequestContent extends AbstractRequestContent

A Request.Content that produces content from an InputStream.

The input stream is read once and therefore fully consumed.

It is possible to specify, at the constructor, a buffer size used to read content from the stream, by default 1024 bytes.

The InputStream passed to the constructor is by default closed when is it fully consumed.