func (o *Outbound) createRequest(peer *hostport.Peer, treq *transport.Request) (*http.Request, error) { newURL := *o.urlTemplate newURL.Host = peer.HostPort() return http.NewRequest("POST", newURL.String(), treq.Body) }