Skip to content

Commit 7f4887b

Browse files
Update hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/gclient/IEntityResult.java
Co-authored-by: Michael Buckley <michaelabuckley@gmail.com>
1 parent 0490795 commit 7f4887b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/gclient/IEntityResult.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ public interface IEntityResult {
1414
String getMimeType();
1515

1616
@NonNull
17+
/**
18+
* Gets the response body as an InputStream.
19+
*
20+
* <p><strong>Warning:</strong> The returned stream can only be read once.
21+
* Subsequent calls to this method will return the same exhausted stream.
22+
* Consider copying the content to a byte array if multiple reads are needed.</p>
23+
*
24+
* @return The response body as an InputStream (single-use only)
25+
*/
1726
InputStream getInputStream();
1827

1928
int getStatusCode();

0 commit comments

Comments
 (0)