0

In the Neo4j manual, in the section about unmanaged extensions can be read:

Neo4j’s Transactional Cypher HTTP endpoint (see Section 21.1, “Transactional Cypher HTTP endpoint”) streams responses back to the client and we should follow in its footsteps.

So that's exactly what I do BUT: What's the correct way to consume the response? Right now I just do:

Response.readEntity(String.class)

But I think that I'm not taking advantage of the streaming, I'm just consuming the entire result. Is there a better way to do this, or is the streaming just server side and I shouldn't worry about it?

David Perez
  • 478
  • 5
  • 17

1 Answers1

0

Just wanted to share my discoveries:

Response has a getEntity() that returns an InputStream then you have to process that Stream by yourself. This is the question that helped me

Community
  • 1
  • 1
David Perez
  • 478
  • 5
  • 17