Accepts a response and writes out the response's entity as an array of bytes.
Accepts a response and writes out the response's entity as an array of bytes. The content type set on the response is used to determine how the entity is marshalled into the byte array. For example, if the content type is json, then the entity will be marshalled into a Json string.
Writes out a response to a byte array taking into account the content type.