Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 434 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 434 Bytes

fly

基于epoll 边缘模式实现的 golang reactor socket 框架

http协议

package main

import (
	"fly/agreement/http"
	"fmt"
)

func main() {
	http.Run(":8000", func(req *http.Request, resp *http.Response) {
		fmt.Println(req.Url)
		resp.Write([]byte("hello world "))
	})
}

可以自己模仿 fly/agreement/http 很轻松的实现自己的应用层协议

参考自 https://github.com/Allenxuxu/gev