encode_response

Function encode_response 

Source
fn encode_response(response: &SymbolicParseResponse) -> Result<Bytes, ApiError>
Expand description

Encode a POST /api/v1/parse body. It is the whole model, so call this only on the blocking pool (#4696). The bytes are the ones Json would write and DiskCache::set would store.