UNPKG

@tsed/common

Version:
20 lines (19 loc) 455 B
/** * Set a mime list which are acceptable and checks if the specified content types are acceptable, based on the request’s Accept HTTP header field. * * ```typescript * @Controller('/mypath') * export class MyCtrl { * * @Get('/') * @AcceptMime('application/json') * public getResource(){} * } * ``` * * @param mimes * @decorator * @operation * @response */ export declare function AcceptMime(...mimes: string[]): Function;