From 851bbc7d09705ade50bbfe11681886d7845b415e Mon Sep 17 00:00:00 2001 From: Nathaniel Cook Date: Tue, 28 Jun 2022 16:42:50 -0600 Subject: [PATCH] feat(stdlib): deprecate experimental/http.get (#4923) Use `http/requests` instead of `experimental/http.get`. --- libflux/go/libflux/buildinfo.gen.go | 2 +- stdlib/experimental/http/http.flux | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libflux/go/libflux/buildinfo.gen.go b/libflux/go/libflux/buildinfo.gen.go index 4205ee60de..50c5f9efd4 100644 --- a/libflux/go/libflux/buildinfo.gen.go +++ b/libflux/go/libflux/buildinfo.gen.go @@ -183,7 +183,7 @@ var sourceHashes = map[string]string{ "stdlib/experimental/group_test.flux": "eabe72efa7bd5f2eb30a6e6afb19b65157d167b15740afa85d0f0849cd2fab94", "stdlib/experimental/histogram_quantile_test.flux": "b5968dbaf510bdc0c92033d300706c5dd2250c9788a0000fe39aca3189d45cca", "stdlib/experimental/histogram_test.flux": "3d983cac860f92c05fd697ee447e34499e417653574fa1698a487f119dab7b50", - "stdlib/experimental/http/http.flux": "dda34b0579c8e5eefae9fac4b596dc2d40c432a257b69ce78715ad47e24e2ea4", + "stdlib/experimental/http/http.flux": "96268512928d041d17a9618d98987512589ac1d8e0d47beb87b064ba90caf42b", "stdlib/experimental/http/requests/requests.flux": "3ba3427669bbe11208afaef402da3f9fd74e6192c1aa071963060e611ce42c98", "stdlib/experimental/influxdb/influxdb.flux": "503f68779c9d8a4c307d371cce8071826d0462a00e486190b3dfa681f9b620dc", "stdlib/experimental/integral_test.flux": "4c9b6c866884839027946e93793689b8b3d328e2e777f8ee2f8973ffd72be036", diff --git a/stdlib/experimental/http/http.flux b/stdlib/experimental/http/http.flux index 4e1912c3ba..b81f06dff1 100644 --- a/stdlib/experimental/http/http.flux +++ b/stdlib/experimental/http/http.flux @@ -1,7 +1,10 @@ // Package http provides functions for transferring data using HTTP protocol. // +// **Deprecated**: This package is deprecated in favor of [`requests`](https://docs.influxdata.com/flux/v0.x/stdlib/http/requests/). +// // ## Metadata // introduced: 0.39.0 +// deprecated: NEXT // tags: http // package http @@ -10,6 +13,8 @@ package http // get submits an HTTP GET request to the specified URL and returns the HTTP // status code, response body, and response headers. // +// **Deprecated**: `http.get()` is deprecated in favor of [`requests.get()`](https://docs.influxdata.com/flux/v0.x/stdlib/http/requests/get/). +// // ## Response format // `http.get()` returns a record with the following properties: //