All Projects → bozd4g → go-http-client

bozd4g / go-http-client

Licence: MIT license
An enhanced http client for Golang

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to go-http-client

HTTP-Wrapper
A simple http wrapper
Stars: ✭ 13 (-72.92%)
Mutual labels:  http-client
unity-simple-http
A dead simple HTTP client for Unity3D
Stars: ✭ 32 (-33.33%)
Mutual labels:  http-client
phoenix html simplified helpers
Some helpers for phoenix html( truncate, time_ago_in_words, number_with_delimiter, url_for, current_page? )
Stars: ✭ 29 (-39.58%)
Mutual labels:  helper
request-on-steroids
An HTTP client ✨ with retry, circuit-breaker and tor support 📦 out-of-the-box
Stars: ✭ 19 (-60.42%)
Mutual labels:  http-client
woodpecker
woodpecker http client for Android
Stars: ✭ 17 (-64.58%)
Mutual labels:  http-client
htest
htest is a http-test package
Stars: ✭ 24 (-50%)
Mutual labels:  http-client
httper
An asynchronous HTTP(S) client built on top of hyper.
Stars: ✭ 16 (-66.67%)
Mutual labels:  http-client
WaterPipe
URL routing framework, requests/responses handler, and HTTP client for PHP
Stars: ✭ 24 (-50%)
Mutual labels:  http-client
http4ts
Server as a Function http toolkit for TypeScript & JavaScript
Stars: ✭ 30 (-37.5%)
Mutual labels:  http-client
dynamic-cli
A Modern, user-friendly command-line HTTP client for the API testing, and if you're stuck - Search and browse StackOverflow without leaving the CLI
Stars: ✭ 151 (+214.58%)
Mutual labels:  http-client
oh-my-request
🔮 simple request library by java8
Stars: ✭ 41 (-14.58%)
Mutual labels:  http-client
Country
Country gives a list of countries with all their flags.
Stars: ✭ 26 (-45.83%)
Mutual labels:  helper
vkhelpers
Vulkan c helper library
Stars: ✭ 25 (-47.92%)
Mutual labels:  helper
Fetch
Asynchronous HTTP client with promises.
Stars: ✭ 29 (-39.58%)
Mutual labels:  http-client
http
A janet http client library
Stars: ✭ 22 (-54.17%)
Mutual labels:  http-client
cube
Common LISP Kubernetes Client
Stars: ✭ 33 (-31.25%)
Mutual labels:  http-client
jetty-load-generator
jetty-project.github.io/jetty-load-generator/
Stars: ✭ 62 (+29.17%)
Mutual labels:  http-client
comment-value
Instruments a Node program and updates its comments with computed expression values
Stars: ✭ 27 (-43.75%)
Mutual labels:  helper
raise if
one liner `raise Exception if condition` for Python
Stars: ✭ 15 (-68.75%)
Mutual labels:  helper
reky
Reky is an opensource API development platform. It automatically visualizes API response with outstanding graphs & tables.
Stars: ✭ 22 (-54.17%)
Mutual labels:  http-client

go-http-client

go-http-client

An enhanced http client for Golang

Documentation on go.dev 🔗

Coverage awesome

This package provides you a http client package for your http requests. You can send requests quicly with this package. If you want to contribute this package, please fork and create a pull request.

Installation

$ go get -u github.com/bozd4g/go-http-client/

Example Usage

package main

import (
	"context"
	"log"

	gohttpclient "github.com/bozd4g/go-http-client"
)

type Post struct {
	ID    int    `json:"id"`
	Title string `json:"title"`
}

func main() {
	ctx := context.Background()
	client := gohttpclient.New("https://jsonplaceholder.typicode.com")

	response, err := client.Get(ctx, "/posts/1")
	if err != nil {
		log.Fatalf("error: %v", err)
	}

	var post Post
	if err := response.Unmarshal(&post); err != nil {
		log.Fatalf("error: %v", err)
	}

	log.Printf(post.Title) // sunt aut facere repellat provident occaecati...
}

License

Copyright (c) 2020 Furkan Bozdag

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].