Categorygithub.com/fenixara/go-http
module
0.0.0-20191114034924-d3b0170aec54
Repository: https://github.com/fenixara/go-http.git
Documentation: pkg.go.dev

# README

go-http

HTTP Wrapper in golang along with mock

GoDoc Go Report Card

To get the latest package:

go get -u github.com/FenixAra/go-http/http

Usage

package main

import (
	"net/http"

	http_wrap "github.com/FenixAra/go-http/http"
	"github.com/FenixAra/go-util/log"
)

func main() {
	config := log.NewConfig("", "Debug", "Full", "TestApp", "", "", "")
	l := log.New(config)

	cfg := http_wrap.NewConfig()
	cfg.SetRetries(10)
	cfg.SetTimeout(5)
	wrapper := http_wrap.New(cfg, l)

	wrapper.MakeRequest(http.MethodGet, "https://www.google.com", "Google", nil, nil)
}

# Packages

No description provided by the author
No description provided by the author