5 lines
17 KiB
JSON
5 lines
17 KiB
JSON
|
{
|
||
|
"id": "api/common/http/HttpContext",
|
||
|
"title": "HttpContext",
|
||
|
"contents": "\n\n<article>\n <div class=\"breadcrumb-container\">\n <div class=\"breadcrumb\">\n <script type=\"application/ld+json\">\n {\n \"@context\": \"http://schema.org\",\n \"@type\": \"BreadcrumbList\",\n \"itemListElement\": [\n { \"@type\": \"ListItem\", \"position\": 1, \"item\": { \"@id\": \"https://angular.io//api\", \"name\": \"API\" } },\n { \"@type\": \"ListItem\", \"position\": 2, \"item\": { \"@id\": \"https://angular.io/api/common\", \"name\": \"@angular/common\" } },\n { \"@type\": \"ListItem\", \"position\": 3, \"item\": { \"@id\": \"https://angular.io/api/common/http\", \"name\": \"@angular/common/http\" } },\n { \"@type\": \"ListItem\", \"position\": 4, \"item\": { \"@id\": \"https://angular.io/api/common/http/HttpContext\", \"name\": \"HttpContext\" } }\n ]\n }\n </script>\n <a href=\"/api\">API</a> > <a href=\"api/common\">@angular/common</a> > <a href=\"api/common/http\">@angular/common/http</a>\n </div>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/common/http/src/context.ts?message=docs(common)%3A%20describe%20your%20change...#L17-L99\" aria-label=\"Suggest Edits\" title=\"Suggest Edits\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">mode_edit</i></a>\n <a href=\"https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/http/src/context.ts#L17-L99\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n \n <header class=\"api-header\">\n <h1 id=\"httpcontext\">HttpContext<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/http/HttpContext#httpcontext\"><i class=\"material-icons\">link</i></a></h1>\n \n <label class=\"api-type-label class\">class</label>\n \n \n \n </header>\n \n <aio-toc class=\"embedded\"></aio-toc>\n\n <div class=\"api-body\">\n \n <section class=\"short-description\">\n <p>Http context stores arbitrary user defined values and ensures type safety without\nactually knowing the types. It is backed by a <code>Map</code> and guarantees that keys do not clash.</p>\n\n <p><a href=\"api/common/http/HttpContext#description\">See more...</a></p>\n </section>\n \n \n \n <section class=\"class-overview\">\n<code-example language=\"ts\" hidecopy=\"true\">\nclass <a href=\"api/common/http/HttpContext\" class=\"code-anchor\">HttpContext</a> {\n <a class=\"code-anchor\" href=\"api/common/http/HttpContext#set\"><span class=\"member-name\">set</span><T>(token: HttpContextToken<T>, value: T): HttpContext</a>\n <a class=\"code-anchor\" href=\"api/common/http/HttpContext#get\"><span class=\"member-name\">get</span><T>(token: HttpContextToken<T>): T</a>\n <a class=\"code-anchor\" href=\"api/common/http/HttpContext#delete\"><span class=\"member-name\">delete</span>(token: HttpContextToken<unknown>): HttpContext</a>\n <a class=\"code-anchor\" href=\"api/common/http/HttpContext#keys\"><span class=\"member-name\">keys</span>(): IterableIterator<HttpContextToken<unknown>></a>\n}\n</code-example>\n\n \n \n\n</section>\n\n\n \n\n \n \n<section class=\"description\">\n <h2 id=\"description\">Description<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/http/HttpContext#description\"><i class=\"material-icons\">link</i></a></h2>\n <p>This context is mutable and is shared between cloned requests unless explicitly specified.</p>\n\n <p>Further information available in the <a href=\"api/common/http/HttpContext#usage-notes\">Usage Notes</a>...</p>\n</section>\n\n \n\n\n\n\n\n\n\n\n\n\n\n\n<section class=\"instance-methods\">\n <h2 id=\"methods\">Methods<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/http/HttpContext#methods\"><i class=\"material-icons\">link</i></a></h2>\n \n <a id=\"set\"></a>\n
|
||
|
}
|