W3cubDocs

/Angular

HttpContextToken

A token used to manipulate and access values stored in HttpContext.

API

class HttpContextToken<T> {
  constructor(defaultValue: () => T): HttpContextToken<T>;
  readonly override defaultValue: () => T;
}

constructor

HttpContextToken<T>
@paramdefaultValue() => T
@returnsHttpContextToken<T>

defaultValue

() => T

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/common/http/HttpContextToken