The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/packages/apps-engine/tests/test-data/bridges/httpBridge.ts

15 lines
493 B

import type { IHttpResponse } from '../../../src/definition/accessors';
import type { IHttpBridgeRequestInfo } from '../../../src/server/bridges';
import { HttpBridge } from '../../../src/server/bridges';
export class TestsHttpBridge extends HttpBridge {
public call(info: IHttpBridgeRequestInfo): Promise<IHttpResponse> {
return Promise.resolve({
url: info.url,
method: info.method,
statusCode: 200,
headers: info.request.headers,
content: info.request.content,
});
}
}