mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
0e1434d1c7
a bit lowver perofrmance.
20 lines
338 B
Go
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())
|
|
}
|
|
|
|
}
|