feat:完善项目信息
This commit is contained in:
@ -3,7 +3,6 @@ package web
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"os"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
@ -57,10 +56,9 @@ func WithFunction(function func(string) (bool, func(r *http.Request))) Option {
|
||||
}
|
||||
|
||||
func (this *Web) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
remoteUrl, _ := url.Parse("http://192.168.0.147:9000")
|
||||
fmt.Println(remoteUrl)
|
||||
//remoteUrl, _ := url.Parse("http://192.168.0.147:9000")
|
||||
fmt.Println(r.Host)
|
||||
fmt.Println(r.RequestURI)
|
||||
//fmt.Println(r.RequestURI)
|
||||
|
||||
if this.function != nil {
|
||||
pass, callback := this.function(r.Host)
|
||||
|
Reference in New Issue
Block a user