TypeDoc all the thngs
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
import {ResponseFactory} from "./ResponseFactory";
|
||||
import {Request} from "../lifecycle/Request";
|
||||
|
||||
/**
|
||||
* Helper function that creates a new HTMLResponseFactory.
|
||||
* @param value
|
||||
*/
|
||||
export function html(value: string): HTMLResponseFactory {
|
||||
return new HTMLResponseFactory(value)
|
||||
}
|
||||
|
||||
/**
|
||||
* Response factory that writes a string to the response as HTML.
|
||||
*/
|
||||
export class HTMLResponseFactory extends ResponseFactory {
|
||||
constructor(
|
||||
public readonly value: string,
|
||||
|
||||
Reference in New Issue
Block a user