Sebastiaan van Stijn
a6048fc792
client: add WithUserAgent() option
...
When constructing the client, and setting the User-Agent, care must be
taken to apply the header in the right location, as custom headers can
be set in the CLI configuration, and merging these custom headers should
not override the User-Agent header.
This patch adds a dedicated `WithUserAgent()` option, which stores the
user-agent separate from other headers, centralizing the merging of
other headers, so that other parts of the (CLI) code don't have to be
concerned with merging them in the right order.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2023-06-09 09:59:29 +02:00
..
2023-03-29 16:59:44 +00:00
2016-09-07 11:05:58 -07:00
2021-02-16 10:07:44 -05:00
2022-10-08 17:41:39 +02:00
2023-05-10 22:13:38 +02:00
2018-04-23 13:52:44 -07:00
2023-05-10 22:13:38 +02:00
2018-04-23 13:52:44 -07:00
2023-05-10 22:13:38 +02:00
2022-03-20 19:04:52 +01:00
2023-03-31 16:15:01 -04:00
2021-08-27 14:56:57 +08:00
2023-01-01 13:35:16 +01:00
2023-05-19 20:38:51 +02:00
2023-01-01 13:35:16 +01:00
2023-06-09 09:59:29 +02:00
2023-05-10 22:13:38 +02:00
2021-02-16 10:07:44 -05:00
2023-05-10 22:13:38 +02:00
2022-03-20 19:04:52 +01:00
2023-05-10 22:13:38 +02:00
2019-03-18 15:26:21 +01:00
2023-05-10 22:13:38 +02:00
2022-03-20 19:04:52 +01:00
2023-05-10 22:13:38 +02:00
2022-05-13 02:40:14 +02:00
2022-07-08 19:56:23 +02:00
2023-05-10 22:13:38 +02:00
2021-02-16 10:07:44 -05:00
2023-05-10 22:13:38 +02:00
2022-04-19 08:28:20 +02:00
2023-05-10 22:13:38 +02:00
2023-05-08 15:27:52 +05:30
2023-05-03 21:25:07 +02:00
2023-05-03 21:23:42 +02:00
2023-05-10 22:13:38 +02:00
2022-06-24 11:54:25 +02:00
2023-05-10 22:13:38 +02:00
2018-04-23 13:52:44 -07:00
2023-05-10 22:13:38 +02:00
2022-03-20 19:04:52 +01:00
2023-05-10 22:13:38 +02:00
2022-04-19 17:40:33 +02:00
2023-05-10 22:13:38 +02:00
2022-03-31 19:59:17 +02:00
2023-05-10 22:13:38 +02:00
2022-07-08 19:56:23 +02:00
2023-05-10 22:13:38 +02:00
2018-04-23 13:52:44 -07:00
2023-05-10 22:13:38 +02:00
2019-03-18 15:26:21 +01:00
2023-05-10 22:13:38 +02:00
2022-03-20 19:04:52 +01:00
2023-05-10 22:13:38 +02:00
2018-04-23 13:52:44 -07:00
2023-05-10 22:13:38 +02:00
2018-04-23 13:52:44 -07:00
2023-05-10 22:13:38 +02:00
2022-04-20 21:29:34 +02:00
2023-05-10 22:13:38 +02:00
2018-04-23 13:52:44 -07:00
2023-05-10 22:13:38 +02:00
2020-02-28 09:54:37 -08:00
2023-05-10 22:13:38 +02:00
2022-04-20 21:29:34 +02:00
2023-05-10 22:13:38 +02:00
2019-03-18 15:26:21 +01:00
2023-05-10 22:13:38 +02:00
2018-04-23 13:52:44 -07:00
2023-05-10 22:13:38 +02:00
2021-02-16 10:07:44 -05:00
2023-05-10 22:13:38 +02:00
2023-01-26 15:52:01 -05:00
2023-05-10 22:13:38 +02:00
2021-07-27 12:17:45 +02:00
2023-05-10 22:13:38 +02:00
2022-07-29 23:04:34 +02:00
2022-03-07 12:35:55 +01:00
2023-05-10 21:52:43 +02:00
2023-05-10 22:13:38 +02:00
2022-09-28 01:58:52 +02:00
2021-08-27 14:56:57 +08:00
2022-05-12 11:36:31 +02:00
2023-05-10 22:13:38 +02:00
2021-02-16 10:07:44 -05:00
2023-05-10 22:13:38 +02:00
2022-07-29 23:04:34 +02:00
2023-05-10 22:13:38 +02:00
2019-03-18 15:26:21 +01:00
2023-05-10 22:13:38 +02:00
2021-02-16 10:07:44 -05:00
2023-05-10 22:13:38 +02:00
2022-03-20 19:04:52 +01:00
2023-05-10 22:13:38 +02:00
2022-11-30 17:08:00 +01:00
2023-05-10 22:13:38 +02:00
2018-04-23 13:52:44 -07:00
2023-05-10 22:13:38 +02:00
2019-03-18 15:26:21 +01:00
2023-05-10 22:13:38 +02:00
2019-03-16 00:42:42 +01:00
2023-05-10 22:13:38 +02:00
2022-07-29 23:04:34 +02:00
2023-05-10 22:13:38 +02:00
2022-03-20 19:04:52 +01:00
2023-05-10 22:13:38 +02:00
2018-04-23 13:52:44 -07:00
2023-05-10 22:13:38 +02:00
2022-07-29 23:04:34 +02:00
2023-05-10 22:13:38 +02:00
2018-04-23 13:52:44 -07:00
2023-05-10 22:13:38 +02:00
2019-03-18 15:26:21 +01:00
2018-04-23 13:52:44 -07:00
2018-02-05 16:51:57 -05:00
2023-05-08 15:27:52 +05:30
2022-07-29 23:05:15 +02:00
2023-05-10 22:13:38 +02:00
2018-04-23 13:52:44 -07:00
2023-05-10 22:13:38 +02:00
2019-03-18 15:26:21 +01:00
2023-05-10 22:13:38 +02:00
2018-04-23 13:52:44 -07:00
2023-05-10 22:13:38 +02:00
2022-03-20 19:04:52 +01:00
2023-05-10 22:13:38 +02:00
2019-10-18 00:45:33 +02:00
2023-05-10 22:13:38 +02:00
2019-03-18 15:26:21 +01:00
2023-05-10 22:13:38 +02:00
2022-03-20 19:04:52 +01:00
2023-05-10 22:13:38 +02:00
2022-03-20 19:04:52 +01:00
2023-05-10 22:13:38 +02:00
2019-03-18 15:26:21 +01:00
2023-05-10 22:13:38 +02:00
2022-03-20 19:04:52 +01:00
2023-05-10 22:13:38 +02:00
2022-05-13 02:40:14 +02:00
2023-06-09 09:59:29 +02:00
2023-06-09 09:59:29 +02:00
2023-05-10 22:13:38 +02:00
2022-12-21 11:09:01 +01:00
2019-03-18 15:26:21 +01:00
2023-05-10 22:13:38 +02:00
2018-04-23 13:52:44 -07:00
2023-05-10 22:13:38 +02:00
2018-04-23 13:52:44 -07:00
2023-05-10 22:13:38 +02:00
2022-03-20 19:04:52 +01:00
2022-08-23 23:21:21 +02:00
2023-05-10 22:13:38 +02:00
2022-03-20 19:04:52 +01:00
2023-05-10 22:13:38 +02:00
2022-07-29 23:04:34 +02:00
2023-05-10 22:13:38 +02:00
2022-03-20 19:04:52 +01:00
2023-05-10 22:13:38 +02:00
2018-04-23 13:52:44 -07:00
2022-07-29 23:04:34 +02:00
2019-01-03 22:49:00 +01:00
2023-05-10 22:13:38 +02:00
2023-06-09 09:59:29 +02:00
2023-05-10 22:13:38 +02:00
2021-02-16 10:07:44 -05:00
2023-05-10 22:13:38 +02:00
2022-03-20 19:04:52 +01:00
2023-05-10 22:13:38 +02:00
2019-03-18 15:26:21 +01:00
2023-05-10 22:13:38 +02:00
2022-03-20 19:04:52 +01:00
2023-05-10 22:13:38 +02:00
2022-05-13 02:40:14 +02:00
2023-05-10 22:13:38 +02:00
2022-07-29 23:04:34 +02:00
2023-05-10 22:13:38 +02:00
2022-03-20 19:04:52 +01:00
2023-05-10 22:13:38 +02:00
2019-10-14 10:43:00 -05:00
2023-05-10 22:13:38 +02:00
2018-05-20 13:07:17 +02:00
2023-05-10 22:13:38 +02:00
2022-03-20 19:04:52 +01:00
2023-05-10 22:13:38 +02:00
2022-07-29 23:04:34 +02:00
2023-05-10 22:13:38 +02:00
2019-03-18 15:26:21 +01:00
2023-05-10 22:13:38 +02:00
2019-03-18 15:26:21 +01:00
2023-05-10 22:13:38 +02:00
2019-03-18 15:26:21 +01:00
2023-05-10 22:13:38 +02:00
2018-04-23 13:52:44 -07:00
2023-05-10 22:13:38 +02:00
2018-04-23 13:52:44 -07:00
2023-05-10 22:13:38 +02:00
2018-04-23 13:52:44 -07:00
2023-05-10 22:13:38 +02:00
2022-05-13 02:40:14 +02:00
2023-05-10 22:13:38 +02:00
2022-03-20 19:04:52 +01:00
2023-05-10 22:13:38 +02:00
2019-03-18 15:26:21 +01:00
2018-04-23 13:52:44 -07:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2019-03-18 15:26:21 +01:00
2023-05-10 22:13:38 +02:00
2022-04-28 22:39:14 +02:00
2023-05-10 22:13:38 +02:00
2022-04-21 19:50:59 +02:00
2023-05-10 22:13:38 +02:00
2022-08-03 23:30:28 +02:00
2019-03-18 15:26:21 +01:00
2023-05-10 22:13:38 +02:00
2022-03-20 19:04:52 +01:00
2023-05-10 22:13:38 +02:00
2022-05-13 02:40:14 +02:00