setResponseType function

Set the "response.type" attribute