aboutsummaryrefslogtreecommitdiff
path: root/weed/util/http_util_test.go
blob: a8a1172d2b22408cfa4c870b0e813ef2387dc79c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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())
	}

}