Go stdlib package — net/http/httputil. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.ClientConn.Close()NeutralClientConn.Close() error
Close calls Hijack and then also closes the underlying connection.
.ClientConn.Do()NeutralClientConn.Do(req *http.Request) (*http.Response, error)
Do is convenience method that writes a request and reads a response.
.ClientConn.Hijack()NeutralClientConn.Hijack() (net.Conn, *bufio.Reader)
Hijack detaches the ClientConn and returns the underlying connection as well
.ClientConn.Pending()NeutralClientConn.Pending() int
Pending returns the number of unanswered requests
.ClientConn.Read()NeutralClientConn.Read(req *http.Request) (*http.Response, error)
Read reads the next response from the wire. A valid response might be
.ClientConn.Write()NeutralClientConn.Write(req *http.Request) error
Write writes a request. An ErrPersistEOF error is returned if the connection
.DumpRequest()NeutralDumpRequest(req *http.Request, body bool) ([]byte, error)
DumpRequest returns the given request in its HTTP/1.x wire
.DumpRequestOut()NeutralDumpRequestOut(req *http.Request, body bool) ([]byte, error)
DumpRequestOut is like DumpRequest but for outgoing client requests. It
.DumpResponse()NeutralDumpResponse(resp *http.Response, body bool) ([]byte, error)
DumpResponse is like DumpRequest but dumps a response.
.NewChunkedReader()NeutralNewChunkedReader(r io.Reader) io.Reader
NewChunkedReader returns a new chunkedReader that translates the data read from r
| FQN | Field | |
|---|---|---|
| net/http/httputil | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
// standard library — no go.mod entry required
from codepathfinder.go_rule import ... # net/http/httputil