public class HttpClient5BodyEntity
extends org.apache.hc.core5.http.io.entity.AbstractHttpEntity
HttpBody转换为HttpEntity对象| Constructor and Description |
|---|
HttpClient5BodyEntity(String contentType,
String contentEncoding,
boolean chunked,
HttpBody body)
构造
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InputStream |
getContent() |
long |
getContentLength() |
boolean |
isStreaming() |
void |
writeTo(OutputStream outStream) |
public void writeTo(OutputStream outStream)
writeTo in interface org.apache.hc.core5.http.HttpEntitywriteTo in class org.apache.hc.core5.http.io.entity.AbstractHttpEntitypublic InputStream getContent()
public boolean isStreaming()
public void close()
public long getContentLength()
Copyright © 2025. All rights reserved.