You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a configurer WithBuffersSize to allow changing the default size of the httpClient buffers.
Currently the only way would be to recreate the full http.Transport and pass it to the WithHttpTransport configurer.
But this means loosing the internal implementation already done by the SDK, like tls config, or timeouts.
// WithBuffersSize is a configurer for ObsClient to set the customized ReadBufferSize and WriteBufferSize.funcWithBuffersSize(readBufferSize, writeBufferSizeint) configurer {
returnfunc(conf*config) {
conf.readBufferSize=readBufferSizeconf.writeBufferSize=writeBufferSize
}
}
The text was updated successfully, but these errors were encountered:
Add a configurer WithBuffersSize to allow changing the default size of the httpClient buffers.
Currently the only way would be to recreate the full http.Transport and pass it to the WithHttpTransport configurer.
But this means loosing the internal implementation already done by the SDK, like tls config, or timeouts.
The text was updated successfully, but these errors were encountered: