public void writeTo(Writer writer) {
        try {
            try (InputStream in = body();
                 Reader reader = new InputStreamReader(in, getCharset())) {
                Readers.transferTo(reader, writer);
            }
        } catch (IOException e) {
            throw new RequestsException(e);
        } finally {
            close();
        }
    }
public void writeTo ( Writer writer ) { try { try ( InputStream in = body ( ) ; Reader reader = new InputStreamReader ( in , getCharset ( ) ) ) { Readers . transferTo ( reader , writer ) ; } } catch ( IOException e ) { throw new RequestsException ( e ) ; } finally { close ( ) ; } }
Write response body to Writer, charset can be set using {@link #charset(Charset)},
or will use charset detected from response header if not set.
Writer will not be closed.