(w http.ResponseWriter, r *http.Request)
| 95 | } |
| 96 | |
| 97 | func (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 | |
| 102 | func (p *PAC) ListenAndServe() error { |
| 103 | r, err := p.MakeBody() |