sing/protocol/http/link.go
2023-04-13 17:15:07 +08:00

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