createFixtureHttpHandler
createFixtureHttpHandler(
controller:FixtureController,options: {path?:string;token:string; }): (request:IncomingMessage,response:ServerResponse) =>Promise<boolean>
Handle fixed POST begin/call/drain routes in an outer Node listener. Returns false outside its path. Keep this handler reachable while the app is paused; the control token never belongs in browser fixtures.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
controller |
FixtureController |
options |
{ path?: string; token: string; } |
options.path? |
string |
options.token |
string |
Returns
Section titled “Returns”(request: IncomingMessage, response: ServerResponse) => Promise<boolean>