Skip to content

leonmaia/requests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requests

Join the chat at https://gitter.im/leonmaia/requests GoDoc Build 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
  • byte and json streams

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