Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lafikl/fluent
DEPRECATED
https://github.com/lafikl/fluent
Last synced: 13 days ago
JSON representation
DEPRECATED
- Host: GitHub
- URL: https://github.com/lafikl/fluent
- Owner: lafikl
- License: mit
- Created: 2014-10-07T23:32:28.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-14T01:21:23.000Z (over 9 years ago)
- Last Synced: 2024-10-31T13:33:26.231Z (20 days ago)
- Language: Go
- Homepage:
- Size: 283 KB
- Stars: 93
- Watchers: 6
- Forks: 14
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Fluent
=========Fluent HTTP client for Golang. With timeout, retries and exponential back-off support.
Usage:
```go
package mainimport (
"fmt"
"github.com/lafikl/fluent"
"time"
)func main() {
req := fluent.New()
req.Post("http://example.com").
InitialInterval(time.Duration(time.Millisecond)).
Json([]int{1, 3, 4}).
Retry(3)res, err := req.Send()
if err != nil {
fmt.Println(err)
}fmt.Println("donne ", res)
// They can be separated if you don't like chaining ;)
// for example:
// req.Get("http://example.com")
// req.Retry(3)
}```
http://godoc.org/github.com/lafikl/fluent