public static interface XHttpExecutor.Content
| 限定符和类型 | 方法和说明 |
|---|---|
long |
contentLength()
请求体的长度,如果不确定长度可以返回-1,这将使用chunked模式传输
|
String |
contentType()
请求体的MIME类型
|
void |
contentWrite(OutputStream outStream)
请求体写出到输出流的具体方法
|
String contentType() throws IOException
IOExceptionlong contentLength()
throws IOException
IOExceptionvoid contentWrite(OutputStream outStream) throws IOException
outStream - 目标输出流IOException - 将请求体写出到输出流时可能会发生异常Copyright © 2019. All rights reserved.