You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

19 lines
338 B

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())
}
}