Package org.apache.nifi.web.client.api
Interface HttpRequestBodySpec
- All Superinterfaces:
HttpRequestHeadersSpec
HTTP Request Body Specification builder
-
Method Summary
Modifier and TypeMethodDescriptionbody
(InputStream inputStream, OptionalLong contentLength) Set Request Body as streamSet Request Body as provided string encoded as UTF-8.Methods inherited from interface org.apache.nifi.web.client.api.HttpRequestHeadersSpec
header, retrieve
-
Method Details
-
body
Set Request Body as stream- Parameters:
inputStream
- Request Body stream is requiredcontentLength
- Content Length or empty when not known- Returns:
- HTTP Request Headers Specification builder
-
body
Set Request Body as provided string encoded as UTF-8. This should be used only when the payload is small. For large amount of data,- Parameters:
body
- String representation of the payload encoded as UTF-8- Returns:
- HTTP Request Headers Specification builder
- See Also:
-