package proxyutil
import "github.com/google/martian/proxyutil"
Package proxyutil provides functionality for building proxies.
Index ¶
- func NewErrorResponse(code int, err error, req *http.Request) *http.Response
- func NewResponse(code int, body io.Reader, req *http.Request) *http.Response
- func Warning(header http.Header, err error)
Functions ¶
func NewErrorResponse ¶
NewErrorResponse builds new HTTP error responses.
func NewResponse ¶
NewResponse builds new HTTP responses. If body is nil, an empty byte.Buffer will be provided to be consistent with the guarantees provided by http.Transport and http.Client.
func Warning ¶
Warning adds an error to the Warning header in the format: 199 "martian" "error message" "date".
Source Files ¶
- Version
- v2.0.0-beta+incompatible
- Published
- Aug 14, 2015
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 3 hours ago –
Tools for package owners.