Skip to main content
Version: Next

getGitLabRequestOptions()

Home > @backstage/integration > getGitLabRequestOptions

Gets the request options necessary to make requests to a given provider.

Signature:

function getGitLabRequestOptions(config: GitLabIntegrationConfig, token?: string): {
headers: Record<string, string>;
};

Parameters

ParameterTypeDescription
configGitLabIntegrationConfigThe relevant provider config
tokenstring(Optional)

Returns:

{ headers: Record<string, string>; }