azure-functions-ts-essentials
Version:
Essential interfaces and tools for backend development on Azure Functions with TypeScript
21 lines (20 loc) • 622 B
TypeScript
/// <reference types="node" />
import { HttpStatusCode } from './http-status-code';
export interface HttpResponse {
status: HttpStatusCode | number;
body: any;
headers?: {
'content-type'?: string;
'content-length'?: HttpStatusCode | number;
'content-disposition'?: string;
'content-encoding'?: string;
'content-language'?: string;
'content-range'?: string;
'content-location'?: string;
'content-md5'?: Buffer;
'expires'?: Date;
'last-modified'?: Date;
[key: string]: any;
};
isRaw?: boolean;
}