ResponseBuilderBody¶
Public Functions¶
add_chunk¶
Add some body data.
If Transfer-Encoding is set to Chunked in ResponseBuilderHeaders each call to this function will take care of encoding every added array here in Chunked encoding. Add an empty array to add the finishing chunk..
Parameters¶
Returns¶
build¶
Serialize the accumulated response data into a ByteSeqIter.
Returns¶
- ByteSeqIter val
reset¶
Reset the builder to a fresh state, only use the returned builder for further actions.
Returns¶
- ResponseBuilder ref