code: private static InputStream cap(final Request req) throws IOException {
          final Iterator<String> hdr = new RqHeaders.Base(req)
              .header("Transfer-Encoding").iterator();
          final InputStream result;
          if (hdr.hasNext() && "chunked".equalsIgnoreCase(hdr.next())) {
              result = new ChunkedInputStream(req.body());
          } else {
              result = req.body();
          }
          return result;
      }
docs: Cap the steam.
  @param req Request
  @return Stream with a cap
  @throws IOException If fails