convert


Description:

[ Version ( since = "0.3" ) ]
public void convert (Converter converter, int64 content_length = -1)

Apply a converter to the response body.

If the payload is chunked, (eg. 'Transfer-Encoding: chunked') and the new content length is undetermined, it will remain chunked.

Parameters:

converter

converter to stack on the response body

content_length

resulting value for the 'Content-Length' header or '-1' if the length is undetermined