http-svc
Version:
A HTTP request service for browser and node.js
15 lines (13 loc) • 545 B
TypeScript
import { IMiddlewareHandler, BuiltInMiddlewareName } from '../exports';
import { HttpSvcMiddleware } from '@http-svc/middleware';
import { IStringifyOptions } from 'qs'
export type ParamsSerializer = (params: Record<string, unknown>) => string
export interface IBodyPayload {
stringify?: boolean
paramsSerializer?: ParamsSerializer | IStringifyOptions
}
export declare class HttpSvcBody extends HttpSvcMiddleware<IBodyPayload> {
static handler: IMiddlewareHandler<IBodyPayload>;
name: BuiltInMiddlewareName
constructor();
}