(Server) Add a New Type to Capture Mocking
Summary: per title Note: - This is a part of this PR: https://github.com/facebook/flipper/pull/488 Reviewed By: mweststrate Differential Revision: D20440148 fbshipit-source-id: 9365f0b83449f295e819cccc2fa622d866dca129
This commit is contained in:
committed by
Facebook GitHub Bot
parent
4297b3061f
commit
f3eb695fa6
@@ -25,6 +25,7 @@ export type Response = {
|
|||||||
reason: string;
|
reason: string;
|
||||||
headers: Array<Header>;
|
headers: Array<Header>;
|
||||||
data: string | null | undefined;
|
data: string | null | undefined;
|
||||||
|
isMock: boolean;
|
||||||
insights: Insights | null | undefined;
|
insights: Insights | null | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -53,3 +54,10 @@ export type Insights = {
|
|||||||
transferSpeed: number | null | undefined;
|
transferSpeed: number | null | undefined;
|
||||||
retries: RetryInsights | null | undefined;
|
retries: RetryInsights | null | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type Route = {
|
||||||
|
requestUrl: string;
|
||||||
|
requestMethod: string;
|
||||||
|
responseData: string;
|
||||||
|
responseHeaders: {[id: string]: Header};
|
||||||
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user