Skip to content

memclutter/gorequests-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gorequests-proxy

Go codecov

Proxy middleware for memclutter/gorequests.

Install

Installation using the go package system

go get github.com/memclutter/gorequets-proxy

Use

To use, pass to the Use() method of the RequestInstance

package main

import (
	"github.com/memclutter/gorequests"
	"github.com/memclutter/gorequests-proxy"
	"time"
)

func main() {
	proxy := &gorequests_proxy.Proxy{Proxies: []string{"http://example.com:5554", "http://user:pass@secure.example.com:33333"}}
	err := gorequests.Get("http://example.com").Use(proxy).Exec()
	// ...
}