seaweedfs/weed/util/http_util_test.go

20 lines
338 B
Go
Raw Permalink Normal View History

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