mirror of
https://github.com/chainreactors/spray.git
synced 2025-09-15 11:40:13 +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
|
||
|
}
|