Jiahao XU
0708f6f348
Ret artifact url in has_release_artifact
...
So that we can use it to download from private repositories.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-05-06 23:00:02 +10:00
Jiahao XU
9efe39528f
Refactor: Create new crate binstalk-git-repo-api
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-05-05 23:49:09 +10:00
Jiahao XU
435df675b3
Fix too many 429 response ( #1231 )
...
Fixed #1229
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-08-08 00:53:15 +00:00
Jiahao XU
01a87ac606
feat: Impl support for alternative registries ( #1184 )
...
Fixed #1168
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-06-30 03:52:40 +00:00
Jiahao XU
22b3419fce
feat: Add GraphQL support to GhApiClient
( #1124 )
...
Fixed #868
- Add new fn `remote::Client::post`
- Add new fn `remote::RequestBuilder::body`
- Re-export `reqwest::Body` in `remote`
- Add dep percent-encoding v2.2.0 to binstalk-downloader
- Add dep serde-tuple-vec-map v1.0.1 to binstalk-downloader
- Add GraphQL to `GhApiClient`, fallback to Restful API if token is not
provided or authorization failed.
- Fixed `GhReleaseArtifact::try_extract_artifact_from_str`: decode
percent encoded http url path and add regression tests
- Added variant `GhApiError::Context` & `GhApiContextError`
- Added variant `GhApiError::GraphQLErrors` & `GhGraphQLErrors`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-06-04 14:09:49 +00:00
Jiahao XU
72789874f0
Use Quickinstall new release schema ( #867 )
...
- Refactor: Extract new fn `binstalk::helpers::remote::does_url_exist`
- Use new quickinstall release schema in `binstalk::fetchers::QuickInstall`
- Optimize `fetchers::QuickInstall`: Generate url once in `Fetcher::new`
Avoid repeated string allocation plus `Url` parsing.
This also makes changing package_url and stats_url easier.
- Optimize `QuickInstall::report`: Use HEAD instead of GET
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-03-06 08:13:08 +00:00
Jiahao XU
89fa5b1769
Refactor: Extract new crate binstalk-{signal, downloader} ( #518 )
...
* Refactor: Extract new crate binstalk-downloader
* Re-export `PkgFmt` from `binstalk_manifests`
* Update release-pr.yml
* Update dependabot
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-11-11 04:02:54 +00:00
Jiahao XU
e605a99113
Impl retry for 503 and 429 status code in response ( #473 )
...
* Add new dep httpdate v1.0.2
* Enable feature time of dep tokio in binstalk
* Impl retry for `helpers::remote::Client`
Fixed #472
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-10-10 17:54:29 +13:00
Jiahao XU
76bc030f90
Disable tcp_nodelay
for reqwest::Client
and add rate limiting for https requests ( #458 )
2022-10-07 15:51:34 +11:00
Félix Saparelli
e25aa50ec9
Rename lib to binstalk ( #361 )
2022-09-10 16:44:18 +10:00