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 |
The relevant provider config | |
|
token |
string |
(Optional) An optional auth token to use for communicating with GitLab. By default uses the integration token |
{ headers: Record<string, string>; }