Reading Body Content of Request
-
In the request, get the ContentSource.
-
From the ContentSource, get the inputStream.
-
Read content from the InputStream.
ContentSource body = event.getCallContext().getRequest().getBody();
final InputStream inputStream = body.getInputStream() ; //use input stream to read content //Do something with the content
:::note
Refer working code in `examples/ReadRequestBody.java`.
:::