Thanks to visit codestin.com
Credit goes to github.com

Skip to content

andrerigon/requests

 
 

Repository files navigation

Requests

GoDoc wercker status

Most existing requests packages I've seen reimplement all features requests offers. This Request inherits all the behavior and functions of http.Requests package and adds others functions and behaviors.

amazing

Features

  • Retries
  • Connection Timeouts

Installation

To install Requests, simply:

$ go get github.com/leonmaia/requests

Usage

package whatever

import (
	"github.com/leonmaia/requests"
)

func GetExampleWithDefaultTimeoutAndRetries() error {
	r, err := requests.NewRequest("GET", "http://google.com", nil)
	if err != nil {
		return err
	}

	response, err := r.Do()
	if err != nil {
		return err
	}
	// Do whatever you want with the response
	return nil
}

How to Contribute

I strongly encourage everyone whom creates a usefull custom assertion function to contribute them and help make this package even better.

Make sure all the tests are passing, and that you have covered all the changes you made.

About

HTTP Requests for Golang.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 98.3%
  • Makefile 1.7%