Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

[15:10:43 CDT(-0500)] <athena> it seems like that'd make the API friendly but still let you connect to something more low-level if you needed to?

[15:11:37 CDT(-0500)] <EricDalquist> well 1 would need to return something like:

[15:11:37 CDT(-0500)] <EricDalquist> RestResponse {

[15:11:37 CDT(-0500)] <EricDalquist> String writerOutput;

[15:11:37 CDT(-0500)] <EricDalquist> byte[] streamOutput;

[15:11:37 CDT(-0500)] <EricDalquist> String streamEncoding;

[15:11:37 CDT(-0500)] <EricDalquist> }

[15:11:51 CDT(-0500)] <EricDalquist> then the client would check both String and byte[]

[15:11:55 CDT(-0500)] <EricDalquist> and see which one isn't null

[15:12:00 CDT(-0500)] <EricDalquist> that would be good

[15:12:07 CDT(-0500)] <EricDalquist> since we could then also add things like status code

[15:12:08 CDT(-0500)] <EricDalquist> and headers

[15:12:12 CDT(-0500)] <EricDalquist> if those might be usful

[15:12:20 CDT(-0500)] <athena> oh i see - the issue is we're not sure if we're going to have a string or a bytestream?

[15:12:26 CDT(-0500)] <EricDalquist> right

[15:12:36 CDT(-0500)] <EricDalquist> you get a string if the rest API writes to response.getWriter()