@angular/ssr 19.0.0-next.9 → 19.0.0-rc.1

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.
@@ -0,0 +1,55 @@
1
+ import { InjectionToken } from '@angular/core';
2
+
3
+ /**
4
+ * Injection token representing the current HTTP request object.
5
+ *
6
+ * Use this token to access the current request when handling server-side
7
+ * rendering (SSR).
8
+ *
9
+ * @remarks
10
+ * This token may be `null` in the following scenarios:
11
+ *
12
+ * * During the build processes.
13
+ * * When the application is rendered in the browser (client-side rendering).
14
+ * * When performing static site generation (SSG).
15
+ * * During route extraction in development (at the time of the request).
16
+ *
17
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Request | `Request` on MDN}
18
+ *
19
+ * @developerPreview
20
+ */
21
+ export declare const REQUEST: InjectionToken<Request | null>;
22
+
23
+ /**
24
+ * Injection token for additional request context.
25
+ *
26
+ * Use this token to pass custom metadata or context related to the current request in server-side rendering.
27
+ *
28
+ * @remarks
29
+ * This token is only available during server-side rendering and will be `null` in other contexts.
30
+ *
31
+ * @developerPreview
32
+ */
33
+ export declare const REQUEST_CONTEXT: InjectionToken<unknown>;
34
+
35
+ /**
36
+ * Injection token for response initialization options.
37
+ *
38
+ * Use this token to provide response options for configuring or initializing
39
+ * HTTP responses in server-side rendering or API endpoints.
40
+ *
41
+ * @remarks
42
+ * This token may be `null` in the following scenarios:
43
+ *
44
+ * * During the build processes.
45
+ * * When the application is rendered in the browser (client-side rendering).
46
+ * * When performing static site generation (SSG).
47
+ * * During route extraction in development (at the time of the request).
48
+ *
49
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Response/Response | `ResponseInit` on MDN}
50
+ *
51
+ * @developerPreview
52
+ */
53
+ export declare const RESPONSE_INIT: InjectionToken<ResponseInit | null>;
54
+
55
+ export { }