String function ( ) { return new String ( bytes ( ) , charset ( ) . name ( ) ) ; }
returns the response as a string decoded with the charset of the content-type header . if that header is either absent or lacks a charset , this will attempt to decode the response body as utf-8 . closes responsebody automatically.this method loads entire response body into memory . if the response body is very large this may trigger an outofmemoryerror . prefer to stream the response body if this is a possibility for your response . concode_field_sep Reader reader concode_field_sep Reader charStream concode_elem_sep Charset charset concode_elem_sep InputStream byteStream concode_elem_sep byte[] bytes concode_elem_sep ResponseBody create concode_elem_sep ResponseBody create concode_elem_sep ResponseBody create concode_elem_sep long contentLength concode_elem_sep BufferedSource source concode_elem_sep MediaType contentType concode_elem_sep void close