blob: f59d65f56c62e1614ef6f4b970da9877ba359873 [file] [log] [blame]
load("//bazel/go:go_test.bzl", "go_test")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "httputils",
srcs = ["http.go"],
importpath = "go.skia.org/infra/go/httputils",
visibility = ["//visibility:public"],
deps = [
"//go/metrics2",
"//go/sklog",
"//go/timer",
"//go/util",
"@com_github_cenkalti_backoff//:backoff",
"@com_github_fiorix_go_web//autogzip",
"@com_github_rs_cors//:cors",
"@org_golang_x_oauth2//:oauth2",
],
)
go_test(
name = "httputils_test",
srcs = ["http_test.go"],
embed = [":httputils"],
deps = [
"//go/mockhttpclient",
"//go/testutils/unittest",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
],
)