public void setPayload(Payload data)
Sets payload for the request or the content from the response. If size isn't set, this will
attempt to discover it.
- Specified by:
setPayload in interface
setPayload in class
data - typically InputStream for downloads, or File, byte, String, InputStream,
of ByteSource for uploads.
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.