Skip to content

Commit bee0f61

Browse files
authored
Merge branch 'master' into sbunce/fix-data-race
2 parents a71cfa1 + 9c50310 commit bee0f61

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ Oxy [![Build Status](https://travis-ci.org/vulcand/oxy.svg?branch=master)](https
33

44
Oxy is a Go library with HTTP handlers that enhance HTTP standard library:
55

6-
* [Buffer](http://godoc.org/github.com/vulcand/oxy/buffer) retries and buffers requests and responses
7-
* [Stream](http://godoc.org/github.com/vulcand/oxy/stream) passes-through requests, supports chunked encoding with configurable flush interval
8-
* [Forward](http://godoc.org/github.com/vulcand/oxy/forward) forwards requests to remote location and rewrites headers
9-
* [Roundrobin](http://godoc.org/github.com/vulcand/oxy/roundrobin) is a round-robin load balancer
10-
* [Circuit Breaker](http://godoc.org/github.com/vulcand/oxy/cbreaker) Hystrix-style circuit breaker
11-
* [Connlimit](http://godoc.org/github.com/vulcand/oxy/connlimit) Simultaneous connections limiter
12-
* [Ratelimit](http://godoc.org/github.com/vulcand/oxy/ratelimit) Rate limiter (based on tokenbucket algo)
13-
* [Trace](http://godoc.org/github.com/vulcand/oxy/trace) Structured request and response logger
6+
* [Buffer](https://pkg.go.dev/github.com/vulcand/oxy/buffer) retries and buffers requests and responses
7+
* [Stream](https://pkg.go.dev/github.com/vulcand/oxy/stream) passes-through requests, supports chunked encoding with configurable flush interval
8+
* [Forward](https://pkg.go.dev/github.com/vulcand/oxy/forward) forwards requests to remote location and rewrites headers
9+
* [Roundrobin](https://pkg.go.dev/github.com/vulcand/oxy/roundrobin) is a round-robin load balancer
10+
* [Circuit Breaker](https://pkg.go.dev/github.com/vulcand/oxy/cbreaker) Hystrix-style circuit breaker
11+
* [Connlimit](https://pkg.go.dev/github.com/vulcand/oxy/connlimit) Simultaneous connections limiter
12+
* [Ratelimit](https://pkg.go.dev/github.com/vulcand/oxy/ratelimit) Rate limiter (based on tokenbucket algo)
13+
* [Trace](https://pkg.go.dev/github.com/vulcand/oxy/trace) Structured request and response logger
1414

1515
It is designed to be fully compatible with http standard library, easy to customize and reuse.
1616

buffer/buffer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func MemRequestBodyBytes(m int64) optSetter {
179179
}
180180
}
181181

182-
// MaxResponseBodyBytes sets the maximum request body size in bytes
182+
// MaxResponseBodyBytes sets the maximum response body size in bytes
183183
func MaxResponseBodyBytes(m int64) optSetter {
184184
return func(b *Buffer) error {
185185
if m < 0 {
@@ -190,7 +190,7 @@ func MaxResponseBodyBytes(m int64) optSetter {
190190
}
191191
}
192192

193-
// MemResponseBodyBytes sets the maximum request body to be stored in memory
193+
// MemResponseBodyBytes sets the maximum response body to be stored in memory
194194
// buffer middleware will serialize the excess to disk.
195195
func MemResponseBodyBytes(m int64) optSetter {
196196
return func(b *Buffer) error {

forward/fwd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ func (f *httpForwarder) modifyRequest(outReq *http.Request, target *url.URL) {
327327
}
328328
}
329329

330-
// serveHTTP forwards websocket traffic
330+
// serveWebSocket forwards websocket traffic
331331
func (f *httpForwarder) serveWebSocket(w http.ResponseWriter, req *http.Request, ctx *handlerContext) {
332332
if f.log.GetLevel() >= log.DebugLevel {
333333
logEntry := f.log.WithField("Request", utils.DumpHttpRequest(req))

0 commit comments

Comments
 (0)