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:
committed by
Facebook GitHub Bot
parent
d484fb964c
commit
bb4090f529
@@ -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': (
|
||||
|
||||
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user