@showbridge/lib
Version:
Main library for showbridge protocol router
37 lines (36 loc) • 954 B
TypeScript
import { HTTPSender } from '@showbridge/types';
import { Response } from 'express';
declare class HTTPMessage {
msg: any;
response: Response;
sender: HTTPSender;
constructor(msg: any, response: Response);
get messageType(): string;
get originalUrl(): string;
set originalUrl(value: string);
get baseUrl(): string;
set baseUrl(value: string);
get path(): string;
set path(value: string);
get body(): any;
set body(value: any);
get method(): string;
set method(value: string);
toString(): string;
toJSON(): {
messageType: string;
msg: {
originalUrl: string;
baseUrl: string;
body: any;
path: string;
method: string;
headers: any;
connection: {
remoteAddress: any;
};
};
};
static fromJSON(json: any): HTTPMessage;
}
export default HTTPMessage;