Make intern headers configurable

Summary: The one-off hack for slog makes this hard to refactor, so I've added a headers field, putting the caller in charge of this.

Reviewed By: LukeDefeo

Differential Revision: D48564065

fbshipit-source-id: f8e78e9b8597fd3131bf3741197e6179807ad5da
This commit is contained in:
Pascal Hartig
2023-08-23 07:40:49 -07:00
committed by Facebook GitHub Bot
parent d484fb964c
commit bb4090f529
2 changed files with 4 additions and 0 deletions

View File

@@ -351,6 +351,7 @@ export type FlipperServerCommands = {
options: {
timeout?: number;
internGraphUrl?: string;
headers?: Record<string, string | number | boolean>;
},
) => Promise<GraphResponse>;
'intern-graph-get': (
@@ -359,6 +360,7 @@ export type FlipperServerCommands = {
options: {
timeout?: number;
internGraphUrl?: string;
headers?: Record<string, string | number | boolean>;
},
) => Promise<GraphResponse>;
'intern-upload-scribe-logs': (

View File

@@ -20,6 +20,7 @@ export async function internGraphPOSTAPIRequest(
options: {
timeout?: number;
internGraphUrl?: string;
headers?: Record<string, string | number | boolean>;
},
token: string,
): Promise<GraphResponse> {
@@ -34,6 +35,7 @@ export async function internGraphGETAPIRequest(
_options: {
timeout?: number;
internGraphUrl?: string;
headers?: Record<string, string | number | boolean>;
},
token: string,
): Promise<GraphResponse> {