You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by GitBox <gi...@apache.org> on 2019/09/26 13:34:21 UTC

[GitHub] [johnzon] mkarg commented on issue #52: JOHNZON-281 JAX-RS Provider MUST throw NoContentException

mkarg commented on issue #52: JOHNZON-281 JAX-RS Provider MUST throw NoContentException
URL: https://github.com/apache/johnzon/pull/52#issuecomment-535504255
 
 
   This PR proposes a solution which reconstitutes compliance with JAX-RS 2.1 with a two-step approach to detect an empty input stream:
   
   * First it tries to use mark/reset as this is very fast, but not guaranteed to be supported by all kinds of input streams.
   * If this is not possible, then it will actively buffer the first byte, which is rather slow, but will work with all kinds of input stream.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services