public interface RequestBody extends TeaRequestBody
contentLength, contentTypeInputStream newStream()
static RequestBody fromFile(File file)
static RequestBody fromFile(Path path)
static RequestBody fromFile(Path path, String mimetype)
static RequestBody fromInputStream(InputStream inputStream)
static RequestBody fromInputStream(InputStream inputStream, Long contentLength)
static RequestBody fromInputStream(InputStream inputStream, Long contentLength, String mimetype)
static RequestBody fromString(String contents)
static RequestBody fromString(String contents, Charset cs)
static RequestBody fromString(String contents, Charset cs, String mimetype)
static RequestBody fromBytes(byte[] bytes)
static RequestBody fromBytes(byte[] bytes, String mimetype)
static RequestBody fromByteBuffer(ByteBuffer byteBuffer)
static RequestBody fromRemainingByteBuffer(ByteBuffer byteBuffer)
static RequestBody empty()
static RequestBody fromBytesDirect(byte[] bytes)
static RequestBody fromBytesDirect(byte[] bytes, String mimetype)
static RequestBody fromContentProvider(ContentStreamProvider provider, Long contentLength, String mimetype)
Copyright © 2023. All rights reserved.