Piping Response Output

The {@link oajrc.RestCall} class provides various convenience `pipeTo()` methods to pipe output to output streams and writers.

If you want to pipe output without any intermediate buffering, you can use the {@link oajrc.RestCall#byLines()} method. This will cause the output to be piped and flushed after every line. This can be useful if you want to display the results in real-time from a long running process producing output on a REST call.

##### Example:

// Pipe output from REST call to System.out in real-time. restClient.doPost(URL).byLines().pipeTo(new PrintWriter(System. out)).run();