@dosgato/templating 0.0.117 → 0.0.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component.d.ts +5 -0
- package/package.json +1 -1
package/dist/component.d.ts
CHANGED
|
@@ -580,6 +580,11 @@ export declare abstract class Page<DataType extends PageData = any, FetchedType
|
|
|
580
580
|
* at any time during fetch, context, or render, to set an HTTP header on the response
|
|
581
581
|
*/
|
|
582
582
|
addHeader: (key: string, value: string | undefined) => void;
|
|
583
|
+
/**
|
|
584
|
+
* This method will be provided to page templates by the render server. You may call it to set
|
|
585
|
+
* the HTTP response status at any time during the fetch, context, or render.
|
|
586
|
+
*/
|
|
587
|
+
setStatus: (statusCode: number) => void;
|
|
583
588
|
/**
|
|
584
589
|
* URL for the currently rendering page
|
|
585
590
|
*
|