摘要: Gopackage mainimport ( "fmt" _ "fmt" "net/http" _ "os")func main() { http.HandleFu
Gopackage mainimport ( "fmt" _ "fmt" "net/http" _ "os")func main() { http.HandleFunc("/", handle) http.ListenAndServe("0.0.0.0:8082",nil)}func handle(w http.ResponseWriter,r *http.Request) { fmt.Fprint(w,"URL=",r.URL.Path) fmt.Println(r.RequestURI)}
PHP内置服务相关学习推荐:PHP编程从入门到精通
echo 1;Swoole
$http = new Swoole\\Http\\Server("0.0.0.0", 9501);$http->on('request', function ($request, $response) { echo 1;});$http->start();
相关文章推荐
网站谷歌评分90+意味着什么?2022-09-06
怎样将不安全网站变成安全网站访问?2022-09-26
网站排名下降,可能跟算法更新没关系2022-09-20
网站如何设置高质量的网页标题?2022-09-14
做外贸网站选哪些语言?法语、德语最吃香2022-09-13