Tags: yudelevi/mubeng
Tags
feat: handle `http.ErrServerClosed` when interrupted (mubeng#227)
build(deps): bump github.com/sourcegraph/conc from 0.2.0 to 0.3.0 (mu… …beng#187) Bumps [github.com/sourcegraph/conc](https://github.com/sourcegraph/conc) from 0.2.0 to 0.3.0. - [Release notes](https://github.com/sourcegraph/conc/releases) - [Commits](sourcegraph/conc@v0.2.0...v0.3.0) --- updated-dependencies: - dependency-name: github.com/sourcegraph/conc dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
feat: Add buffer to response body for future processing This change adds a buffer to the response body, by reading all data into memory using `io.ReadAll`, in order to allow future processing on the response body without hitting the network again. This change also uses `bytes.NewBuffer` to wrap the buffer & `io.NopCloser` to provide a `Closer` implementation that does nothing. This change should fix mubeng#182 & improve the overall reliability & efficiency of the application, as the response body will now be available in memory, avoiding potential network errors or latencies.
PreviousNext