readBody

readBody(length: Integer): Binary;

The readBody method of the JadeHTTPConnection class retrieves the response message from an HTTP request.

The length parameter, if specified, preallocates space for the responseBody property. The default value is zero (0).

For improved performance with large messages, we recommend that you use the content length if it is known or can be estimated.

This method returns a Binary value representing the message response of an HTTP "POST" of the passed URL returned from the server. The responseBody property is set to this returned value. Successive calls to readBody return a null Binary value, as the response has already been read.