Commit Graph

15 Commits (master)

Author SHA1 Message Date
Dane Strandboge 82d1123e78
build: upgrade to Go 1.18.1 (#23252) 2022-04-13 15:24:27 -05:00
Sam Arnold 5015297d40
fix: more expressive errors (#22448)
* fix: more expressive errors

Closes #22446

* fix: server only logging for untyped errors

* chore: fix formatting
2021-09-13 15:12:35 -04:00
Daniel Moran 00afd95cb7
refactor: automated move of errors and id from root to kit (#21101)
Co-authored-by: Sam Arnold <sarnold@influxdata.com>
2021-03-30 14:10:02 -04:00
Daniel Moran 15b9531273
fix: correct various typos (#19987)
Co-authored-by: kumakichi <xyesan@gmail.com>
2020-11-11 13:54:21 -05:00
George d1025b4962
feat(httpc): add error return argument to auth func (#19085) 2020-07-28 14:59:01 +01:00
Stuart Carnie aea54d2ead
fix(http): Use shared http.Transport
This is following precedent established in `net/http`, by using a
shared `http.Transport`. This is necessary to ensure connections which
utilize HTTP keep-alive are reused, along with other benefits of
pooling.
2020-06-05 09:52:45 -07:00
Johnny Steenbergen dccae684fd chore(httpc): extend httpc reqs with tracing 2020-06-04 15:25:19 -07:00
Johnny Steenbergen e80f3068ce feat(httpc): extend request with Auth beahvior 2020-06-04 12:02:31 -07:00
Johnny Steenbergen fd289883fe feat(influx): add User-Agent header to the CLI http calls
closes: #18336
2020-06-02 16:09:11 -07:00
Johnny Steenbergen 35ed5734bb chore(httpc): refactor inputs to eliminate required path
the base address should be enough to make a request. All requests
are now valid without a path provided. This will be true as long
as the address is valid.
2020-05-01 17:47:37 -07:00
Jonathan A. Sternberg 0ae8bebd75
refactor: rewrite imports to include the /v2 suffix for version 2 2020-04-03 12:39:20 -05:00
Johnny Steenbergen e650c941c7 fix: remove duplicate content types from httpc requests
2 issues from investigating this error. First is the status check func
did not identify it was a media unsupported issue adn tries to unmarshal
the empty response body. The 2nd, was the double content type headers were
causing an error. Locally this error does not surface, cannot repoduce on
macos, but in cloud it is persistent.

closes: #16819
2020-02-11 11:14:44 -08:00
Chris Goller 0746533b55
feat(pkg/httpc): add cookie based authorization (#16802)
This will begin work to mimic the browser via the client API.

Signed-off-by: Chris Goller <goller@gmail.com>
2020-02-10 12:37:13 -06:00
Johnny Steenbergen bf86cce1f1 feat(httpc): extend httpc Client with JSON shorthand methods
making most common API calls super easy to get up and running
2019-12-12 07:44:31 -08:00
Johnny Steenbergen 5cc02de988 feat(httpc): add httpc pkg to resuse code for http client type 2019-12-09 12:17:22 -08:00