https://github.com/blinghttp/bling
Amazing Http Client written in Go
https://github.com/blinghttp/bling
golang-library golang-rest-client http json-rest-client rest-client retry-http
Last synced: 3 months ago
JSON representation
Amazing Http Client written in Go
- Host: GitHub
- URL: https://github.com/blinghttp/bling
- Owner: blinghttp
- License: apache-2.0
- Created: 2017-09-21T16:07:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-25T19:51:09.000Z (over 8 years ago)
- Last Synced: 2024-06-20T03:42:38.350Z (almost 2 years ago)
- Topics: golang-library, golang-rest-client, http, json-rest-client, rest-client, retry-http
- Language: Go
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bling
Bling is a Go HTTP client library for creating and sending API requests written in Golang/Go.

[](https://travis-ci.org/blinghttp/bling)
Bling has cool methods which simplify setting HTTP Request properties and sending request. Check [usage](#usage) or the [examples](examples) to learn how to use Bling in your code.
We're still under active development, adding support methods for retries, callbacks, etc.
### Features
* Method Setters: Get/Post/Put/Patch/Delete/Head
* Adding Request Headers
* Encode structs into URL query parameters
## Install
go get github.com/blinghttp/bling
## Usage
Use Bling client to set request properties and easily send http request
```
blingClient := bling.New() //use's default http client if .Client(customClient) is not used
resp, err := blingClient.Get("https://github.com/blinghttp/bling").DoRaw() //DoRaw method returns raw http response
if err != nil {
fmt.Println("Some err", err)
return
}
defer resp.Body.Close()
responseBody, err := ioutil.ReadAll(resp.Body)
if err != nil {
fmt.Println("Some err", err)
return
}
fmt.Println(string(responseBody))
```
## Contributing
We love PR's and highly encourage to contribute.
## License
[Apache License](LICENSE)