You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/repos/Client.swift
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -15145,7 +15145,13 @@ public struct Client: APIProtocol {
15145
15145
}
15146
15146
/// Get a release asset
15147
15147
///
15148
-
/// To download the asset's binary content, set the `Accept` header of the request to [`application/octet-stream`](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types). The API will either redirect the client to the location, or stream it directly if possible. API clients should handle both a `200` or `302` response.
15148
+
/// To download the asset's binary content:
15149
+
///
15150
+
/// - If within a browser, fetch the location specified in the `browser_download_url` key provided in the response.
15151
+
/// - Alternatively, set the `Accept` header of the request to
/// To download the asset's binary content, set the `Accept` header of the request to [`application/octet-stream`](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types). The API will either redirect the client to the location, or stream it directly if possible. API clients should handle both a `200` or `302` response.
1637
+
/// To download the asset's binary content:
1638
+
///
1639
+
/// - If within a browser, fetch the location specified in the `browser_download_url` key provided in the response.
1640
+
/// - Alternatively, set the `Accept` header of the request to
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/assets/{asset_id}/get(repos/get-release-asset)`.
@@ -4996,7 +5002,13 @@ extension APIProtocol {
4996
5002
}
4997
5003
/// Get a release asset
4998
5004
///
4999
-
/// To download the asset's binary content, set the `Accept` header of the request to [`application/octet-stream`](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types). The API will either redirect the client to the location, or stream it directly if possible. API clients should handle both a `200` or `302` response.
5005
+
/// To download the asset's binary content:
5006
+
///
5007
+
/// - If within a browser, fetch the location specified in the `browser_download_url` key provided in the response.
5008
+
/// - Alternatively, set the `Accept` header of the request to
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/releases/assets/{asset_id}/get(repos/get-release-asset)`.
@@ -54477,7 +54489,13 @@ public enum Operations {
54477
54489
}
54478
54490
/// Get a release asset
54479
54491
///
54480
-
/// To download the asset's binary content, set the `Accept` header of the request to [`application/octet-stream`](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types). The API will either redirect the client to the location, or stream it directly if possible. API clients should handle both a `200` or `302` response.
54492
+
/// To download the asset's binary content:
54493
+
///
54494
+
/// - If within a browser, fetch the location specified in the `browser_download_url` key provided in the response.
54495
+
/// - Alternatively, set the `Accept` header of the request to
0 commit comments