Update documentation
This commit is contained in:
parent
376c602748
commit
e8fac2e6ed
4
doc.go
4
doc.go
@ -70,8 +70,8 @@ Servers can accept requests for multiple hosts and schemes:
|
||||
server.HandleFunc("example.org", func(w *gmi.ResponseWriter, r *gmi.Request) {
|
||||
fmt.Fprint(w, "Welcome to example.org")
|
||||
})
|
||||
server.HandleSchemeFunc("http", "example.net", func(w *gmi.ResponseWriter, r *gmi.Request) {
|
||||
fmt.Fprint(w, "Proxied content from example.net")
|
||||
server.HandleFunc("http://example.net", func(w *gmi.ResponseWriter, r *gmi.Request) {
|
||||
fmt.Fprint(w, "Proxied content from http://example.net")
|
||||
})
|
||||
|
||||
To start the server, call ListenAndServe:
|
||||
|
Loading…
Reference in New Issue
Block a user