5 lines
27 KiB
JSON
5 lines
27 KiB
JSON
{
|
|
"id": "api/common/http/HttpBackend",
|
|
"title": "HttpBackend",
|
|
"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/HttpBackend\", \"name\": \"HttpBackend\" } }\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/backend.ts?message=docs(common)%3A%20describe%20your%20change...#L28-L41\" 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/backend.ts#L28-L41\" 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=\"httpbackend\">HttpBackend<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/http/HttpBackend#httpbackend\"><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>A final <code><a href=\"api/common/http/HttpHandler\" class=\"code-anchor\">HttpHandler</a></code> which will dispatch the request via browser HTTP APIs to a backend.</p>\n\n <p><a href=\"api/common/http/HttpBackend#description\">See more...</a></p>\n </section>\n \n \n \n <section class=\"class-overview\">\n<code-example language=\"ts\" hidecopy=\"true\">\nabstract class <a href=\"api/common/http/HttpBackend\" class=\"code-anchor\">HttpBackend</a> implements <a class=\"code-anchor\" href=\"api/common/http/HttpHandler\">HttpHandler</a> {\n <a class=\"code-anchor\" href=\"api/common/http/HttpBackend#handle\">abstract <span class=\"member-name\">handle</span>(req: HttpRequest<any>): Observable<HttpEvent<any>></a>\n}\n</code-example>\n\n \n \n <div class=\"descendants class\">\n <h2 id=\"subclasses\">Subclasses<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/http/HttpBackend#subclasses\"><i class=\"material-icons\">link</i></a></h2>\n \n\n<ul>\n \n <li>\n <code><a href=\"api/common/http/JsonpClientBackend\" class=\"code-anchor\">JsonpClientBackend</a></code>\n \n\n\n </li>\n \n <li>\n <code><a href=\"api/common/http/HttpXhrBackend\" class=\"code-anchor\">HttpXhrBackend</a></code>\n \n\n\n </li>\n \n</ul>\n\n\n </div>\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/HttpBackend#description\"><i class=\"material-icons\">link</i></a></h2>\n <p>Interceptors sit between the <code><a href=\"api/common/http/HttpClient\" class=\"code-anchor\">HttpClient</a></code> interface and the <code><a href=\"api/common/http/HttpBackend\" class=\"code-anchor\">HttpBackend</a></code>.</p>\n<p>When injected, <code><a href=\"api/common/http/HttpBackend\" class=\"code-anchor\">HttpBackend</a></code> dispatches requests directly to the backend, without going\nthrough the interceptor chain.</p>\n\n \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/HttpBackend#methods\"><i class=\"material-icons\">link</i></a></h2>\n \n <a id=\"handle\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"handle\">\n handle()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/http/HttpBackend#handle\"><i class=\"material-icons\">link</i></a></h3>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/common/http/src/backend.ts?message=docs(common)%3A%20describe%20your%20change...#L40-L40\" 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/backend.ts#L40-L40\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n </th></tr></thead>\n <tbody>\n \n \n <tr>\n <td>\n <div class=\"overload-info\">\n \n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\">abstract <span class=\"member-name\">handle</span>(req: HttpRequest<any>): Observable<HttpEvent<any>></code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters\">Parameters</h6>\n <table class=\"is-full-width list-table parameters-table instance-method-overload-parameters\">\n <tbody>\n \n <tr class=\"instance-method-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>req</code>\n </td>\n <td class=\"param-type\"><code><a href=\"api/common/http/HttpRequest\" class=\"code-anchor\">HttpRequest</a><any></any></code></td>\n <td class=\"param-description\">\n \n \n </td>\n </tr>\n </tbody>\n</table>\n\n \n <h6 class=\"no-anchor\" id=\"returns\">Returns</h6>\n <p><code>Observable<<a href=\"api/common/http/HttpEvent\" class=\"code-anchor\">HttpEvent</a><any>></code></p>\n\n \n\n\n \n\n \n</div>\n </td>\n </tr>\n \n\n \n\n \n </tbody>\n</table>\n\n \n</section>\n\n\n\n \n\n\n </div>\n</article>\n\n<!-- links to this doc:\n - api/common/http\n - api/common/http/HttpClientModule\n - api/common/http/HttpHandler\n - api/common/http/HttpXhrBackend\n - api/common/http/JsonpClientBackend\n - api/common/http/testing\n - api/common/http/testing/HttpClientTestingModule\n - guide/http\n - guide/ngmodule-faq\n-->\n<!-- links from this doc:\n - /api\n - api/common\n - api/common/http\n - api/common/http/HttpBackend#description\n - api/common/http/HttpBackend#handle\n - api/common/http/HttpBackend#httpbackend\n - api/common/http/HttpBackend#methods\n - api/common/http/HttpBackend#subclasses\n - api/common/http/HttpClient\n - api/common/http/HttpEvent\n - api/common/http/HttpHandler\n - api/common/http/HttpRequest\n - api/common/http/HttpXhrBackend\n - api/common/http/JsonpClientBackend\n - https://github.com/angular/angular/edit/master/packages/common/http/src/backend.ts?message=docs(common)%3A%20describe%20your%20change...#L28-L41\n - https://github.com/angular/angular/edit/master/packages/common/http/src/backend.ts?message=docs(common)%3A%20describe%20your%20change...#L40-L40\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/http/src/backend.ts#L28-L41\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/http/src/backend.ts#L40-L40\n-->"
|
|
} |