Repository URL to install this package:
|
Version:
0.0.3 ▾
|
import { Request as ExpressRequest, Response as ExpressResponse } from 'express';
export interface SerializedRes {
statusCode: string | number;
headers: {
[key: string]: any;
};
body?: {
[key: string]: any;
};
}
export declare function fromNodeHttpResponseToFetchResponse(res: ExpressResponse): SerializedRes;
export declare type MethodType = 'get' | 'post' | 'put' | 'options' | 'patch' | 'head';
export interface SerializedReq {
headers: {
[key: string]: any;
};
method: MethodType;
url: string;
body?: {
[key: string]: any;
};
}
export declare function fromReqToObj(req: ExpressRequest): SerializedReq;