17 Commits
Author SHA1 Message Date
RomainandGitHub bc580c56fe One side buffering 2026-01-26 10:38:03 +01:00
Fernandez Ludovic f97e824631 chore: update linter 2025-07-15 16:00:27 +02:00
Adam DukeandGitHub 18a66b7d02 buffer: handle bufferWriter error (#247) 2025-03-29 00:00:17 +01:00
Adam DukeandGitHub 62bd3d4a42 tests: remove superflous WriteHeader call from buffer tests (#246) 2024-12-16 19:01:38 +01:00
Fernandez Ludovic bc5d74415f tests: rename tests 2024-11-14 15:44:06 +01:00
Fernandez Ludovic 01d15583d9 chore: update dependecy, CI, and linter 2024-03-25 13:52:53 +01:00
Ngọc LongandGitHub 74b5e48548 feat(buffer): Support gRPC and gRPC Web. (#236) 2023-04-17 10:28:32 +02:00
Fernandez Ludovic 736173ce4c feat: rewrite options and logger 2022-11-11 00:31:09 +01:00
Fernandez Ludovic 46587e0d00 feat: major version of the module 2022-11-07 11:37:22 +01:00
0d0af09a1c forward: rewrite to use httputil.ReverseProxy (#229)
Co-authored-by: Fernandez Ludovic <[email protected]>
2022-11-07 09:41:14 +01:00
Fernandez Ludovic e5c657ef5f fix: apply linting 2022-05-05 00:28:29 +02:00
MichaelandEmile Vauge bf2c8a177a fix: body should never be nil (#162) 2018-10-10 16:42:06 +02:00
Ludovic FernandezandEmile Vauge 510e0d1bfc refactor: migrate from go-check to Testify. (#146) 2018-07-09 16:30:28 +02:00
Larry.HeandArchis 622826f37f fix buffer chunked response (#113) (#123) 2018-03-13 07:50:15 -07:00
Ludovic FernandezandEmile Vauge 1fe46d1aeb Enhance code quality analysis (#104)
* chore: add new Make targets.

* refactor: code review.

* chore(travis): go import path.
2017-12-18 10:25:18 +01:00
nvartolomeiandArchis d767e22291 Go 1.8 fixes (#89)
* Fix buffer tests for Go 1.6+

* Fix forward test under Go 1.6+

* Do not send chunked requests for empty body.

See https://beta.golang.org/doc/go1.8#net_http

* Add Go 1.6.x, 1.7.x, 1.8.x to Travis
2017-09-28 07:16:12 -07:00
ArchisandGitHub e7b38e42b9 Rename "Stream" to "Buffer", and make "Stream" a pass-through for now (#45)
* Renamed Stream to Buffer

This handles the issue: https://github.com/vulcand/oxy/issues/9

It is a better name and helps clarify what the intent and function of this
object is.

* Forked the original stream into Buffer.

* Fixed a build break

* Simplified stream to be pass-through for now.

* Most UTs for stream expect StatusOk as return code

* More updates towards allowing streaming

1. Initial run at the feedback received on the code review, namely,
   updated all comments/docs to say "buffer" in the buffer part of the
   code, and fixed the mistaken package "steam" to "stream"

2. In fwd.go, replaced RoundTripper with ReverseProxy when
   the stream flag is provided. Not sure yet ReverseProxy
   won't buffer and wait for EOF to flush bytes down to the client
   but having a httpStreamingForwarded as a playground, ensures
   the working version of the forwarded isn't affected by any bugs/mistakes
   I introduce.

* Finished up the httpStreamingForwarder.

* Externalize FlushInterval, with a default, and add a URL connect/disconnect listener.

* Make URL to listener, a pointer so listeners can track them correctly.

* Go fmt

* Updated documentation for stream

* Rename Stream test correctly.

* Rebased against master

* Merge artifact removed

* Added a chunked transfer encoding unit test.
2016-08-30 11:35:57 -07:00