Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Commit 13a064f

Browse files
averikitschfrankyn
andauthored
feat(userAgent): allow for optional user agent to be provided (#1313)
Co-authored-by: Frank Natividad <frankyn@users.noreply.github.com>
1 parent 5ec256e commit 13a064f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/storage.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export interface StorageOptions extends GoogleAuthOptions {
4949
autoRetry?: boolean;
5050
maxRetries?: number;
5151
promise?: typeof Promise;
52+
userAgent?: string;
5253
/**
5354
* The API endpoint of the service used to make requests.
5455
* Defaults to `storage.googleapis.com`.
@@ -370,6 +371,8 @@ export class Storage extends Service {
370371
* attempted before returning the error.
371372
* @property {Constructor} [promise] Custom promise module to use instead of
372373
* native Promises.
374+
* @property {string} [userAgent] The value to be prepended to the User-Agent
375+
* header in API requests.
373376
*/
374377
/**
375378
* Constructs the Storage client.

0 commit comments

Comments
 (0)