mirror of
https://github.com/SagerNet/sing.git
synced 2025-04-04 20:37:40 +03:00
14 lines
291 B
Go
14 lines
291 B
Go
package http
|
|
|
|
import (
|
|
"bufio"
|
|
"net/http"
|
|
"net/url"
|
|
_ "unsafe" // for linkname
|
|
)
|
|
|
|
//go:linkname ReadRequest net/http.readRequest
|
|
func ReadRequest(b *bufio.Reader) (req *http.Request, err error)
|
|
|
|
//go:linkname URLSetPath net/url.(*URL).setPath
|
|
func URLSetPath(u *url.URL, p string) error
|