Skip to content

sreeram77/http-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http-client

HTTP client written in go for sending requests. http-client is a wrapper on top of http.Client, providing an easy to use HTTP client.

Installing

go get github.com/sreeram77/http-client

Example

package main

import (
	"fmt"
	"github.com/sreeram77/http-client"
)

func main() {
  // Create an instance of client
	c := http.New()
  // Make a GET request to URL
	r, err := c.Get("https://google.com", nil, nil)
	if err != nil {
		fmt.Println(err)
	}
	
	fmt.Println(r.StatusCode)
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages