Skip to content

Commit

Permalink
add warning for closing stream
Browse files Browse the repository at this point in the history
  • Loading branch information
mrashed-dev committed Nov 17, 2023
1 parent 5a2c84a commit 2dd8b14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/kotlin/com/nylas/resources/Attachments.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class Attachments(client: NylasClient) : Resource<Attachment>(client, Attachment
*
* This method returns a [ResponseBody] which can be used to stream the attachment data,
* and exposes useful headers such as the content type and content length.
* **NOTE**: The caller is responsible for closing the response body.
*
* Alternatively, you can use [downloadBytes] to download the attachment as a byte array.
*
Expand Down

0 comments on commit 2dd8b14

Please sign in to comment.