angular-cn/aio/dist/generated/docs/api/common/http/HttpHeaderResponse.json

5 lines
12 KiB
JSON

{
"id": "api/common/http/HttpHeaderResponse",
"title": "HttpHeaderResponse",
"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/HttpHeaderResponse\", \"name\": \"HttpHeaderResponse\" } }\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/response.ts?message=docs(common)%3A%20describe%20your%20change...#L206-L246\" 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/response.ts#L206-L246\" 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=\"httpheaderresponse\">HttpHeaderResponse<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/http/HttpHeaderResponse#httpheaderresponse\"><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 partial HTTP response which only includes the status and header data,\nbut no response body.</p>\n\n <p><a href=\"api/common/http/HttpHeaderResponse#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/HttpHeaderResponse\" class=\"code-anchor\">HttpHeaderResponse</a> extends <a class=\"code-anchor\" href=\"api/common/http/HttpResponseBase\">HttpResponseBase</a> {\n <a class=\"code-anchor\" href=\"api/common/http/HttpHeaderResponse#constructor()\"><span class=\"member-name\">constructor</span>(init: { headers?: HttpHeaders; status?: number; statusText?: string; url?: string; } = {})</a>\n <a class=\"code-anchor\" href=\"api/common/http/HttpHeaderResponse#type\"><span class=\"member-name\">type</span>: HttpEventType.ResponseHeader</a>\n <a class=\"code-anchor\" href=\"api/common/http/HttpHeaderResponse#clone\"><span class=\"member-name\">clone</span>(update: { headers?: HttpHeaders; status?: number; statusText?: string; url?: string; } = {}): HttpHeaderResponse</a>\n\n // inherited from <a class=\"code-anchor\" href=\"api/common/http/HttpResponseBase\">common/http/HttpResponseBase</a>\n <a class=\"code-anchor\" href=\"api/common/http/HttpResponseBase#constructor()\"><span class=\"member-name\">constructor</span>(init: { headers?: HttpHeaders; status?: number; statusText?: string; url?: string; }, defaultStatus: number = HttpStatusCode.Ok, defaultStatusText: string = 'OK')</a>\n <a class=\"code-anchor\" href=\"api/common/http/HttpResponseBase#headers\"><span class=\"member-name\">headers</span>: HttpHeaders</a>\n <a class=\"code-anchor\" href=\"api/common/http/HttpResponseBase#status\"><span class=\"member-name\">status</span>: number</a>\n <a class=\"code-anchor\" href=\"api/common/http/HttpResponseBase#statusText\"><span class=\"member-name\">statusText</span>: string</a>\n <a class=\"code-anchor\" href=\"api/common/http/HttpResponseBase#url\"><span class=\"member-name\">url</span>: string | null</a>\n <a class=\"code-anchor\" href=\"api/common/http/HttpResponseBase#ok\"><span class=\"member-name\">ok</span>: boolean</a>\n <a class=\"code-anchor\" href=\"api/common/http/HttpResponseBase#type\"><span class=\"member-name\">type</span>: HttpEventType.Response | HttpEventType.ResponseHeader</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/HttpHeaderResponse#description\"><i class=\"material-icons\">link</i></a></h2>\n <p><code><a href=\"api/common/http/HttpHeaderResponse\" class=\"code-anchor\">HttpHeaderResponse</a></code> is a <code><a href=\"api/common/http/HttpEvent\" class=\"code-anchor\">HttpEvent</a></code> available on the response\nevent stream, only when progress events are requested.</p>\n\n \n</section>\n\n \n\n\n\n\n\n\n<h2 id=\"constructor\">Constructor<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/http/HttpHeaderResponse#constructor\"><i class=\"material-icons\">link</i></a></h2>\n<a id=\"constructor()\"></a>\n<table class=\"is-full-width method-table constructor\">\n \n <tbody>\n <tr>\n <td class=\"short-description\">\n <p>Create a new <code><a href=\"api/common/http/HttpHeaderResponse\" class=\"code-anchor\">HttpHeaderResponse</a></code> with the given parameters.</p>\n\n </td>\n </tr>\n \n <tr>\n <td>\n <div class=\"overload-info\">\n \n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\"><span class=\"member-name\">constructor</span>(init: { headers?: <a href=\"api/common/http/HttpHeaders\" class=\"code-anchor\">HttpHeaders</a>; status?: number; statusText?: string; url?: string; } = {})</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters\">Parameters</h6>\n <table class=\"is-full-width list-table parameters-table constructor-overload-parameters\">\n <tbody>\n \n <tr class=\"constructor-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>init</code>\n </td>\n <td class=\"param-type\"><code>object</code></td>\n <td class=\"param-description\">\n <p>Optional. Default is <code>{}</code>.</p>\n \n </td>\n </tr>\n </tbody>\n</table>\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\n\n<section class=\"instance-properties\">\n <h2 id=\"properties\">Properties<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/http/HttpHeaderResponse#properties\"><i class=\"material-icons\">link</i></a></h2>\n <table class=\"is-full-width list-table property-table\">\n <thead>\n <tr>\n <th>Property</th>\n <th>Description</th>\n </tr>\n </thead>\n <tbody>\n \n <tr class=\"instance-property\">\n <td>\n <a id=\"type\"></a>\n <code class=\"\"><span class=\"member-name\">type</span>: <a href=\"api/common/http/HttpEventType#ResponseHeader\" class=\"code-anchor\">HttpEventType.ResponseHeader</a></code>\n </td>\n <td><span class=\"read-only-property\">Read-Only</span>\n \n \n \n </td>\n </tr>\n \n </tbody>\n </table>\n</section>\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/HttpHeaderResponse#methods\"><i class=\"material-icons\">link</i></a></h2>\n \n <a id=\"clone\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"clone\">\n clone()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/http/HttpHeaderResponse#clone\"><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/response.ts?message=docs(common)%3A%20describe%20your%20change...#L230-L245\" 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/response.ts#L230-L245\" 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 <tr>\n <td class=\"short-description\">\n <p>Copy this <code><a href=\"api/common/http/HttpHeaderResponse\" class=\"code-anchor\">HttpHeaderResponse</a></code>, overriding its contents with the\ngiven parameter hash.</p>\n\n </td>\n </tr>\n \n <tr>\n <td>\n <div class=\"overload-info\">\n \n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\"><span class=\"member-name\">clone</span>(update: { headers?: <a href=\"api/common/http/HttpHeaders\" class=\"code-anchor\">HttpHeaders</a>; status?: number; statusText?: string; url?: string; } = {}): <a href=\"api/common/http/HttpHeaderResponse\" class=\"code-anchor\">HttpHeaderResponse</a></code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters-1\">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>update</code>\n </td>\n <td class=\"param-type\"><code>object</code></td>\n <td class=\"param-description\">\n <p>Optional. Default is <code>{}</code>.</p>\n \n </td>\n </tr>\n </tbody>\n</table>\n\n \n <h6 class=\"no-anchor\" id=\"returns\">Returns</h6>\n <p><code><a href=\"api/common/http/HttpHeaderResponse\" class=\"code-anchor\">HttpHeaderResponse</a></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/HttpEvent\n - api/common/http/HttpResponseBase\n-->\n<!-- links from this doc:\n - /api\n - api/common\n - api/common/http\n - api/common/http/HttpEvent\n - api/common/http/HttpEventType#ResponseHeader\n - api/common/http/HttpHeaderResponse#clone\n - api/common/http/HttpHeaderResponse#constructor\n - api/common/http/HttpHeaderResponse#constructor()\n - api/common/http/HttpHeaderResponse#description\n - api/common/http/HttpHeaderResponse#httpheaderresponse\n - api/common/http/HttpHeaderResponse#methods\n - api/common/http/HttpHeaderResponse#properties\n - api/common/http/HttpHeaderResponse#type\n - api/common/http/HttpHeaders\n - api/common/http/HttpResponseBase\n - api/common/http/HttpResponseBase#constructor()\n - api/common/http/HttpResponseBase#headers\n - api/common/http/HttpResponseBase#ok\n - api/common/http/HttpResponseBase#status\n - api/common/http/HttpResponseBase#statusText\n - api/common/http/HttpResponseBase#type\n - api/common/http/HttpResponseBase#url\n - https://github.com/angular/angular/edit/master/packages/common/http/src/response.ts?message=docs(common)%3A%20describe%20your%20change...#L206-L246\n - https://github.com/angular/angular/edit/master/packages/common/http/src/response.ts?message=docs(common)%3A%20describe%20your%20change...#L230-L245\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/http/src/response.ts#L206-L246\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/http/src/response.ts#L230-L245\n-->"
}