Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenAndServe ¶
ListenAndServe creates a listening HTTP server bound to the interface specified by bind and sets up a Gopher to HTTP proxy proxying requests as requested and by default will prozy to a Gopher server address specified by uri if no servers is specified by the request.
Types ¶
type Handler ¶
type Handler func(w http.ResponseWriter, req *http.Request)
Handler is an aliased type for the standard HTTP handler functions
func MakeGopherProxyHandler ¶
MakeGopherProxyHandler returns a Handler that proxies requests to the specified Gopher server as denoated by the first argument to the request path and renders the content using the provided template.
Click to show internal directories.
Click to hide internal directories.