func New(threads int) *Worker {
	tr := &http.Transport{
		Proxy:               NoProxyAllowed,
		MaxIdleConnsPerHost: threads * DefaultMaxIdleConnPerHost,
	}
	client := &http.Client{
		Transport: tr,
		Timeout:   time.Second * 60,
	}
	w := &Worker{
		jobQuene: make(chan *job),
		threads:  threads,
		tr:       tr,
		client:   client,
	}
	go w.start()
	return w
}
New return http worker
package requestwork
import (
	"context"
	"net/http"
	"net/url"
	"time"
)
type job struct {
	ctx     context.Context
	req     *http.Request
	handler func(resp *http.Response, err error) error
	end chan error
}
type result struct {
	resp *http.Response
	err  error
}
const DefaultMaxIdleConnPerHost = 20