Skip to content

How to close HTTP response with the new HTTP Client abstraction #3694

Answered by shawkins
scholzj asked this question in Q&A
Discussion options

You must be logged in to vote

Is this some feature still missing in 5.11? Or what is the right way to close the response?

Generally the end user is not responsible for closing the response. Only if a stream is directly returned will the response be held open - something like a pod operation getLogReader. In those cases the user is responsible for closing the stream to close the response.

Can you use the log override to determine what code path is being warned about here?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@scholzj
Comment options

@shawkins
Comment options

@scholzj
Comment options

Answer selected by shawkins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants