seaweedfs/weed/util/http_util_test.go
Chris Lu 0e1434d1c7 add http client for streaming upload
a bit lowver perofrmance.
2020-02-10 13:43:41 -08:00

20 lines
338 B
Go

package util
import (
"testing"
"github.com/valyala/fasthttp"
)
func TestFasthttpClientHead(t *testing.T) {
err := Head("https://www.google.com", func(header *fasthttp.ResponseHeader) {
header.VisitAll(func(key, value []byte) {
println(string(key) + ": " + string(value))
})
})
if err != nil {
println(err.Error())
}
}