Skip to content

FenixAra/go-http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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)
}

About

HTTP Wrapper in golang along with mock

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages