1 Star 2 Fork 0

Grace / fastcgi

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

下载

go get gitee.com/xqhero/fastcgi

使用

package main

import (
	"fmt"
	"gitee.com/xqhero/fastcgi"
	"io/ioutil"
	"net/http"
)

func main() {
	http.HandleFunc("/", func(writer http.ResponseWriter, request *http.Request) {
		bytes, _ := ioutil.ReadFile("./index.html")
		writer.Write(bytes)
	})
	server := fastcgi.NewFcgiServer("127.0.0.1:9000", nil)
	err := server.Start()
	if err != nil {
		fmt.Println("fcgiserver start error")
	}
}

文档说明

https://wiki.xqhero.com/docs/tcp-ip

Comments ( 0 )

Sign in for post a comment

About

使用go编写的fastcgi包,旨在理解fastcgi协议包的结构,以及返回的数据格式 spread retract
Go
Apache-2.0
Cancel

Releases (1)

All

Contributors

All

Activities

load more
can not load any more
Go
1
https://gitee.com/xqhero/fastcgi.git
git@gitee.com:xqhero/fastcgi.git
xqhero
fastcgi
fastcgi
master

Search