Class DefaultTransporter (8.7.0)

Package

google-auth-library

Properties

USER_AGENT

static readonly USER_AGENT: string;

Default user agent.

Methods

configure(opts)

configure(opts?: GaxiosOptions): GaxiosOptions;

Configures request options before making a request.

Parameter
NameDescription
opts GaxiosOptions

GaxiosOptions options. Configured options.

Returns
TypeDescription
GaxiosOptions

request(opts)

request<T>(opts: GaxiosOptions): GaxiosPromise<T>;

Makes a request using Gaxios with given options.

Parameter
NameDescription
opts GaxiosOptions

GaxiosOptions options.

Returns
TypeDescription
GaxiosPromise<T>
Type Parameter
NameDescription
T

request(opts, callback)

request<T>(opts: GaxiosOptions, callback?: BodyResponseCallback<T>): void;
Parameters
NameDescription
opts GaxiosOptions
callback BodyResponseCallback<T>
Returns
TypeDescription
void
Type Parameter
NameDescription
T