Add support for the query headers.

This commit is contained in:
2021-10-02 20:22:00 +01:00
parent 7ad04d7750
commit 333ec58bd2
7 changed files with 33 additions and 28 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ import (
"testing"
)
func Benchmark_connHandler_Query(t *testing.B) {
func Benchmark_GraphQL_Query(t *testing.B) {
type args struct {
queryContent string
queryVariables interface{}
@@ -58,7 +58,7 @@ func Benchmark_connHandler_Query(t *testing.B) {
server, serverURL := mockGraphQLServerResponses(tt.mockedReply)
g.Endpoint = serverURL
for n := 0; n < t.N; n++ {
g.Query(tt.args.queryContent, tt.args.queryVariables)
g.Query(tt.args.queryContent, tt.args.queryVariables, nil)
}
server.Close()
})