mirror of
https://github.com/chainreactors/spray.git
synced 2025-05-07 19:16:26 +00:00
16 lines
238 B
Go
16 lines
238 B
Go
package pkg
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
func BuildPathRequest(path string, req http.Request) *http.Request {
|
|
req.URL.Path = path
|
|
return &req
|
|
}
|
|
|
|
func BuildHostRequest(u string, req http.Request) *http.Request {
|
|
req.Host = u
|
|
return &req
|
|
}
|