Commit 65b6e75 1 parent ce26415 commit 65b6e75 Copy full SHA for 65b6e75
File tree 3 files changed +15
-0
lines changed
goldens/public-api/angular/ssr
3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 5
5
``` ts
6
6
7
7
import { EnvironmentProviders } from ' @angular/core' ;
8
+ import { InjectionToken } from ' @angular/core' ;
8
9
9
10
// @public
10
11
export class AngularAppEngine {
@@ -34,6 +35,15 @@ export enum RenderMode {
34
35
Server = 1
35
36
}
36
37
38
+ // @public
39
+ export const REQUEST: InjectionToken <Request >;
40
+
41
+ // @public
42
+ export const REQUEST_CONTEXT: InjectionToken <unknown >;
43
+
44
+ // @public
45
+ export const RESPONSE_INIT: InjectionToken <ResponseInit >;
46
+
37
47
// @public
38
48
export type ServerRoute = ServerRouteAppShell | ServerRouteClient | ServerRoutePrerender | ServerRoutePrerenderWithParams | ServerRouteServer ;
39
49
Original file line number Diff line number Diff line change @@ -17,3 +17,5 @@ export {
17
17
provideServerRoutesConfig ,
18
18
RenderMode ,
19
19
} from './src/routes/route-config' ;
20
+
21
+ export { REQUEST , RESPONSE_INIT , REQUEST_CONTEXT } from './src/tokens' ;
Original file line number Diff line number Diff line change @@ -10,15 +10,18 @@ import { InjectionToken } from '@angular/core';
10
10
11
11
/**
12
12
* Injection token for the current request.
13
+ * @developerPreview
13
14
*/
14
15
export const REQUEST = new InjectionToken < Request > ( 'REQUEST' ) ;
15
16
16
17
/**
17
18
* Injection token for the response initialization options.
19
+ * @developerPreview
18
20
*/
19
21
export const RESPONSE_INIT = new InjectionToken < ResponseInit > ( 'RESPONSE_INIT' ) ;
20
22
21
23
/**
22
24
* Injection token for additional request context.
25
+ * @developerPreview
23
26
*/
24
27
export const REQUEST_CONTEXT = new InjectionToken < unknown > ( 'REQUEST_CONTEXT' ) ;
You can’t perform that action at this time.
0 commit comments