MCPcopy
hub / github.com/txthinking/brook / ServeHTTP

Method ServeHTTP

pac.go:97–100  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

95}
96
97func (p *PAC) ServeHTTP(w http.ResponseWriter, r *http.Request) {
98 w.Header().Set("Content-Type", "application/x-ns-proxy-autoconfig")
99 w.Write(p.Body)
100}
101
102func (p *PAC) ListenAndServe() error {
103 r, err := p.MakeBody()

Callers

nothing calls this directly

Calls 2

SetMethod · 0.80
WriteMethod · 0.45

Tested by

no test coverage detected