5 lines
6.3 KiB
JSON
5 lines
6.3 KiB
JSON
{
|
|
"id": "api/common/http/HttpClientModule",
|
|
"title": "HttpClientModule",
|
|
"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/HttpClientModule\", \"name\": \"HttpClientModule\" } }\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/module.ts?message=docs(common)%3A%20describe%20your%20change...#L133-L165\" 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/module.ts#L133-L165\" 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=\"httpclientmodule\">HttpClientModule<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/http/HttpClientModule#httpclientmodule\"><i class=\"material-icons\">link</i></a></h1>\n \n <label class=\"api-type-label ngmodule\">ngmodule</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>Configures the <a href=\"guide/glossary#injector\">dependency injector</a> for <code><a href=\"api/common/http/HttpClient\" class=\"code-anchor\">HttpClient</a></code>\nwith supporting services for XSRF. Automatically imported by <code><a href=\"api/common/http/HttpClientModule\" class=\"code-anchor\">HttpClientModule</a></code>.</p>\n\n <p><a href=\"api/common/http/HttpClientModule#description\">See more...</a></p>\n </section>\n \n \n \n <section class=\"ngmodule-overview\">\n<code-example language=\"ts\" hidecopy=\"true\">\nclass <a href=\"api/common/http/HttpClientModule\" class=\"code-anchor\">HttpClientModule</a> {\n}\n</code-example>\n\n \n \n\n</section>\n\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/HttpClientModule#description\"><i class=\"material-icons\">link</i></a></h2>\n <p>You can add interceptors to the chain behind <code><a href=\"api/common/http/HttpClient\" class=\"code-anchor\">HttpClient</a></code> by binding them to the\nmultiprovider for built-in <a href=\"guide/glossary#di-token\">DI token</a> <code><a href=\"api/common/http/HTTP_INTERCEPTORS\" class=\"code-anchor\">HTTP_INTERCEPTORS</a></code>.</p>\n\n \n</section>\n\n \n\n \n\n \n\n \n\n\n \n\n\n \n \n<section class=\"providers\">\n <h2 id=\"providers\">Providers<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/http/HttpClientModule#providers\"><i class=\"material-icons\">link</i></a></h2>\n <table class=\"is-full-width list-table property-table\">\n <thead>\n <tr>\n <th>Provider</th>\n </tr>\n </thead>\n <tbody>\n \n <tr>\n <td>\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box\">\n <a href=\"api/common/http/HttpClient\" class=\"code-anchor\">HttpClient</a>\n </code-example>\n </td>\n </tr>\n \n <tr>\n <td>\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box\">\n { provide: <a href=\"api/common/http/HttpHandler\" class=\"code-anchor\">HttpHandler</a>, useClass: HttpInterceptingHandler }\n </code-example>\n </td>\n </tr>\n \n <tr>\n <td>\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box\">\n <a href=\"api/common/http/HttpXhrBackend\" class=\"code-anchor\">HttpXhrBackend</a>\n </code-example>\n </td>\n </tr>\n \n <tr>\n <td>\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box\">\n { provide: <a href=\"api/common/http/HttpBackend\" class=\"code-anchor\">HttpBackend</a>, useExisting: <a href=\"api/common/http/HttpXhrBackend\" class=\"code-anchor\">HttpXhrBackend</a> }\n </code-example>\n </td>\n </tr>\n \n </tbody>\n </table>\n </section>\n\n \n\n \n \n\n\n \n\n\n </div>\n</article>\n\n<!-- links to this doc:\n - api/common/http\n - api/common/http/HttpInterceptor\n - api/core/APP_INITIALIZER\n - guide/bootstrapping\n - guide/entry-components\n - guide/feature-modules\n - guide/frequent-ngmodules\n - guide/http\n - guide/module-types\n - guide/ngmodule-faq\n - guide/ngmodules\n - guide/npm-packages\n - guide/upgrade\n - start/start-data\n - tutorial/toh-pt6\n-->\n<!-- links from this doc:\n - /api\n - api/common\n - api/common/http\n - api/common/http/HTTP_INTERCEPTORS\n - api/common/http/HttpBackend\n - api/common/http/HttpClient\n - api/common/http/HttpClientModule#description\n - api/common/http/HttpClientModule#httpclientmodule\n - api/common/http/HttpClientModule#providers\n - api/common/http/HttpHandler\n - api/common/http/HttpXhrBackend\n - guide/glossary#di-token\n - guide/glossary#injector\n - https://github.com/angular/angular/edit/master/packages/common/http/src/module.ts?message=docs(common)%3A%20describe%20your%20change...#L133-L165\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/http/src/module.ts#L133-L165\n-->"
|
|
} |