angular-cn/public/docs/js/latest/api/http/Headers-class.jade

198 lines
2.0 KiB
Plaintext

p.location-badge.
exported from <a href='../http'>angular2/http</a>
defined in <a href="https://github.com/angular/angular/tree/3a0410a/modules/angular2/src/http/headers.ts#L15-L77">angular2/src/http/headers.ts (line 15)</a>
:markdown
Polyfill for [Headers](https://developer.mozilla.org/en-US/docs/Web/API/Headers/Headers), as
specified in the [Fetch Spec](https://fetch.spec.whatwg.org/#headers-class). The only known
difference from the spec is the lack of an `entries` method.
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor(headers?: Headers | Object)
:markdown
.l-sub-section
h3 append
pre.prettyprint
code.
append(name: string, value: string)
:markdown
.l-sub-section
h3 delete
pre.prettyprint
code.
delete(name: string)
:markdown
.l-sub-section
h3 forEach
pre.prettyprint
code.
forEach(fn: Function)
:markdown
.l-sub-section
h3 get
pre.prettyprint
code.
get(header: string)
:markdown
.l-sub-section
h3 has
pre.prettyprint
code.
has(header: string)
:markdown
.l-sub-section
h3 keys
pre.prettyprint
code.
keys()
:markdown
.l-sub-section
h3 set
pre.prettyprint
code.
set(header: string, value: string | List&lt;string&gt;)
:markdown
.l-sub-section
h3 values
pre.prettyprint
code.
values()
:markdown
.l-sub-section
h3 getAll
pre.prettyprint
code.
getAll(header: string)
:markdown
.l-sub-section
h3 entries
pre.prettyprint
code.
entries()
:markdown