当前位置 : 主页 > 网络编程 > PHP >

Go,PHP,Swoole 并发测试详解

来源:互联网 收集:自由互联 发布时间:2021-08-08
Go package 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)} 相关

Go

package 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)}

相关学习

网友评论