2015-06-01 22:51:00 -07:00
p.location-badge.
2015-06-19 12:08:22 -07:00
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>
2015-06-01 22:51:00 -07:00
:markdown
2015-06-19 12:08:22 -07:00
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.
2015-06-01 22:51:00 -07:00
.l-main-section
h2 Members
.l-sub-section
2015-06-19 12:08:22 -07:00
h3 constructor
2015-06-01 22:51:00 -07:00
pre.prettyprint
code.
2015-06-19 12:08:22 -07:00
constructor(headers?: Headers | Object)
2015-06-01 22:51:00 -07:00
:markdown
.l-sub-section
2015-06-19 12:08:22 -07:00
h3 append
2015-06-01 22:51:00 -07:00
pre.prettyprint
code.
2015-06-19 12:08:22 -07:00
append(name: string, value: string)
2015-06-01 22:51:00 -07:00
:markdown
.l-sub-section
2015-06-19 12:08:22 -07:00
h3 delete
2015-06-01 22:51:00 -07:00
pre.prettyprint
code.
2015-06-19 12:08:22 -07:00
delete(name: string)
2015-06-01 22:51:00 -07:00
:markdown
.l-sub-section
2015-06-19 12:08:22 -07:00
h3 forEach
2015-06-01 22:51:00 -07:00
pre.prettyprint
code.
2015-06-19 12:08:22 -07:00
forEach(fn: Function)
2015-06-01 22:51:00 -07:00
:markdown
.l-sub-section
2015-06-19 12:08:22 -07:00
h3 get
2015-06-01 22:51:00 -07:00
pre.prettyprint
code.
2015-06-19 12:08:22 -07:00
get(header: string)
2015-06-01 22:51:00 -07:00
:markdown
.l-sub-section
2015-06-19 12:08:22 -07:00
h3 has
2015-06-01 22:51:00 -07:00
pre.prettyprint
code.
2015-06-19 12:08:22 -07:00
has(header: string)
2015-06-01 22:51:00 -07:00
:markdown
.l-sub-section
2015-06-19 12:08:22 -07:00
h3 keys
2015-06-01 22:51:00 -07:00
pre.prettyprint
code.
2015-06-19 12:08:22 -07:00
keys()
2015-06-01 22:51:00 -07:00
:markdown
.l-sub-section
2015-06-19 12:08:22 -07:00
h3 set
2015-06-01 22:51:00 -07:00
2015-06-19 12:08:22 -07:00
pre.prettyprint
code.
set(header: string, value: string | List<string>)
2015-06-01 22:51:00 -07:00
:markdown
.l-sub-section
2015-06-19 12:08:22 -07:00
h3 values
2015-06-01 22:51:00 -07:00
pre.prettyprint
code.
2015-06-19 12:08:22 -07:00
values()
2015-06-01 22:51:00 -07:00
:markdown
.l-sub-section
2015-06-19 12:08:22 -07:00
h3 getAll
2015-06-01 22:51:00 -07:00
pre.prettyprint
code.
2015-06-19 12:08:22 -07:00
getAll(header: string)
2015-06-01 22:51:00 -07:00
:markdown
.l-sub-section
2015-06-19 12:08:22 -07:00
h3 entries
2015-06-01 22:51:00 -07:00
pre.prettyprint
code.
2015-06-19 12:08:22 -07:00
entries()
2015-06-01 22:51:00 -07:00
:markdown