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: {
|
options: {
|
||||||
timeout?: number;
|
timeout?: number;
|
||||||
internGraphUrl?: string;
|
internGraphUrl?: string;
|
||||||
|
headers?: Record<string, string | number | boolean>;
|
||||||
},
|
},
|
||||||
) => Promise<GraphResponse>;
|
) => Promise<GraphResponse>;
|
||||||
'intern-graph-get': (
|
'intern-graph-get': (
|
||||||
@@ -359,6 +360,7 @@ export type FlipperServerCommands = {
|
|||||||
options: {
|
options: {
|
||||||
timeout?: number;
|
timeout?: number;
|
||||||
internGraphUrl?: string;
|
internGraphUrl?: string;
|
||||||
|
headers?: Record<string, string | number | boolean>;
|
||||||
},
|
},
|
||||||
) => Promise<GraphResponse>;
|
) => Promise<GraphResponse>;
|
||||||
'intern-upload-scribe-logs': (
|
'intern-upload-scribe-logs': (
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ export async function internGraphPOSTAPIRequest(
|
|||||||
options: {
|
options: {
|
||||||
timeout?: number;
|
timeout?: number;
|
||||||
internGraphUrl?: string;
|
internGraphUrl?: string;
|
||||||
|
headers?: Record<string, string | number | boolean>;
|
||||||
},
|
},
|
||||||
token: string,
|
token: string,
|
||||||
): Promise<GraphResponse> {
|
): Promise<GraphResponse> {
|
||||||
@@ -34,6 +35,7 @@ export async function internGraphGETAPIRequest(
|
|||||||
_options: {
|
_options: {
|
||||||
timeout?: number;
|
timeout?: number;
|
||||||
internGraphUrl?: string;
|
internGraphUrl?: string;
|
||||||
|
headers?: Record<string, string | number | boolean>;
|
||||||
},
|
},
|
||||||
token: string,
|
token: string,
|
||||||
): Promise<GraphResponse> {
|
): Promise<GraphResponse> {
|
||||||
|
|||||||
Reference in New Issue
Block a user