[WIP]
Rum provides middlewares for Golang http.Client. As it is easy to use http handler(server-side) middlewares with Gin, Rum aims to make using client-side middlewares as easy as Gin when use http.Client.
Go version 1.13+
go get github.com/YouEclipse/rum
import (
"net/http"
"github.com/YouEclipse/rum/pkg/rum"
)
func main() {
httpClient := http.Client{}
transport := &rum.Transport{}
m := NewAuthenticationMiddleware()
transport.Use(m.BasicAuth)
httpClient.Transport = transport
...
}
- cache
- mock
- throttle
- authentication
- retry
- open-tracing
...