// NewRequest returns a new request.
NewRequest returns a new request.
// NewRequest returns a new request .
func NewRequest(toURL *url.URL, opts ...Option) *Request {
	options := &options{
		header: make(http.Header),
	}
	for _, opt := range opts {
		opt(options)
	}
	return &Request{
		URL:    toURL,
		Header: options.header,
	}
}
func NewRequest ( toURL * url . URL , opts ... Option ) * Request { options := & options { header : make ( http . Header ) , } for _ , opt := range opts { opt ( options ) } return & Request { URL : toURL , Header : options . header , } }
NewRequest returns a new request.
NewRequest returns a new request .