Decorator to mark a class method as a file outgoing http response.
The status code of the response.
The headers for the response.
A method decorator.
import { FileHttpResponse } from '@stone-js/http-core';class UserController { @FileHttpResponse() getUsers() { return new File('path/to/file'); }} Copy
import { FileHttpResponse } from '@stone-js/http-core';class UserController { @FileHttpResponse() getUsers() { return new File('path/to/file'); }}
Decorator to mark a class method as a file outgoing http response.