mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-04-05 20:52:50 +08:00
20 lines
337 B
Go
20 lines
337 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())
|
|
}
|
|
|
|
}
|