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

Parameter

Type

Description

config

GitLabIntegrationConfig

The relevant provider config

token

string

(Optional)

**Returns:**

{ headers: Record<string, string>; }