Decorator to mark a class method as an html outgoing http response.
The status code of the response.
The headers for the response.
A method decorator.
import { HtmlHttpResponse } from '@stone-js/http-core';class UserController { @HtmlHttpResponse() getUsers() { return '<h1>Hello World</h1>'; }} Copy
import { HtmlHttpResponse } from '@stone-js/http-core';class UserController { @HtmlHttpResponse() getUsers() { return '<h1>Hello World</h1>'; }}
Decorator to mark a class method as an html outgoing http response.