Class Content
java.lang.Object
org.apache.hc.client5.http.fluent.Content
This class represents arbitrary content of a specific type that can be consumed
multiple times and requires no explicit deallocation used by the fluent facade.
- Since:
- 4.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Content
private final byte[]
private final org.apache.hc.core5.http.ContentType
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NO_CONTENT
-
raw
private final byte[] raw -
type
private final org.apache.hc.core5.http.ContentType type
-
-
Constructor Details
-
Content
public Content(byte[] raw, org.apache.hc.core5.http.ContentType type)
-
-
Method Details