@tsed/common
Version:
A TypeScript Framework on top of Express
20 lines (19 loc) • 455 B
TypeScript
/**
* 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;