Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProxyHandler ¶
type ProxyHandler struct {
// contains filtered or unexported fields
}
ProxyHandler is flexible proxy handler
func New ¶
func New(resolver Resolver, transport *transport.Transport) *ProxyHandler
New creates new ProxyHandler
func (*ProxyHandler) Handle ¶
func (h *ProxyHandler) Handle(res http.ResponseWriter, request *http.Request)
Handle process request url
func (*ProxyHandler) HandleError ¶
func (h *ProxyHandler) HandleError(res http.ResponseWriter, err error)
HandleError writes error response
Click to show internal directories.
Click to hide internal directories.