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