Move to vendor dir
This commit is contained in:
26
vendor/github.com/xoebus/statham/README.md
generated
vendored
Normal file
26
vendor/github.com/xoebus/statham/README.md
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
# statham
|
||||
|
||||
*jason statham is the per-domain transporter*
|
||||
|
||||

|
||||
|
||||
## installation
|
||||
|
||||
``` sh
|
||||
go get github.com/xoebus/statham
|
||||
```
|
||||
|
||||
## usage
|
||||
|
||||
``` go
|
||||
defaultTransport := &http.Transport{...}
|
||||
tr1 := &http.Transport{...}
|
||||
tr2 := &http.Transport{...}
|
||||
|
||||
tr := statham.NewTransport(defaultTransport, statham.Mapping{
|
||||
"github.com": tr1,
|
||||
"google.com": tr2,
|
||||
})
|
||||
|
||||
client := &http.Client{Transport: tr}
|
||||
```
|
Reference in New Issue
Block a user