Skip to content

Releases: antlabs/gout-middleware

v0.0.6版本

10 Dec 15:26
Compare
Choose a tag to compare

更新依赖

v0.0.5版本

27 Jul 11:30
Compare
Choose a tag to compare

增加关闭http 自动跳转功能3xx状态码

package main

import (
	"github.com/antlabs/gout-middleware/request"
	"github.com/guonaihong/gout"
	"net/http"
)

func main() {
	c := &http.Client{}
	gout.New(c).GET(":8080/301").RequestUse(request.Close3xx(c, true)).Do()
}

v0.0.4版本

21 Jul 10:54
Compare
Choose a tag to compare

上传进度条功能

package main

import (
        "bytes"
        "github.com/antlabs/gout-middleware/request"
        "github.com/guonaihong/gout"
)

func main() {
        gout.POST(":8080").RequestUse(request.ProgressBar(func(currBytes, totalBytes int) {

                fmt.Printf("%d:%d-->%f%%\n", currBytes, totalBytes, float64(currBytes)/float64(totalBytes))
        })).SetBody(strings.Repeat("1", 100000) /*构造大点的测试数据,这里换成真实业务数据*/).Do()
}

v0.0.3版本

28 Jun 07:35
Compare
Choose a tag to compare

新增解码gzip中间件

v0.0.2版本

24 Jun 06:43
Compare
Choose a tag to compare

新增压缩请求策略

v0.0.1版本

23 Jun 08:14
Compare
Choose a tag to compare

新增gzip压缩请求body的功能