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

198 lines
2.0 KiB
Plaintext
Raw Normal View History

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