It seems like if you could figure out whether the Body supported multiple reads (for example, an in-memory buffer), would save some copies.
Unfortunately, it seems that NopCloser isn't exported, but maybe you could export your own wrapper around it that could be used as an indicator?
It seems like if you could figure out whether the Body supported multiple reads (for example, an in-memory buffer), would save some copies.
Unfortunately, it seems that NopCloser isn't exported, but maybe you could export your own wrapper around it that could be used as an indicator?