mirror of
https://github.com/chrislusf/seaweedfs
synced 2025-07-01 09:12:47 +02:00
19 lines
338 B
Go
19 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())
|
|
}
|
|
|
|
}
|