Function: NoContentHttpResponse()
Function: NoContentHttpResponse()
function NoContentHttpResponse<T>(headers): MethodDecorator;
Decorator to mark a class method as a 204 outgoing http response.
Type Parameters
T
T
extends Function
= Function
Parameters
headers
HeadersType
= {}
The headers for the response.
Returns
MethodDecorator
A method decorator.
Example
import { NoContentHttpResponse } from '@stone-js/http-core';
class UserController {
@NoContentHttpResponse()
getUsers() {
return { name: 'John Doe' };
}
}