## Header
### 类定义
```typescript
class Headers {
static fromResponseHeaderString(headersString: string) : Headers
constructor(headers?: Headers|{[name: string]: any})
append(name: string, value: string) : void
delete(name: string) : void
forEach(fn: (values: string[], name: string, headers: Map<string, string[]>) => void) : void
get(name: string) : string
has(name: string) : boolean
keys() : string[]
set(name: string, value: string|string[]) : void
values() : string[][]
toJSON() : {[name: string]: any}
getAll(name: string) : string[]
entries()
}
```
### 属性
- static fromResponseHeaderString(headersString: `string`) : `Headers`
Returns a new Headers instance from the given DOMString of Response Headers根据传入的DOMString
- append(name: `string`, value: `string`) : `void`
Appends a header to existing list of header values for a given header name.
- delete(name: `string`) : `void`
Deletes all header values for the given name.
- foreach(fn: (values: `string[]`, name: `string`, headers: `Map<string, string[]>`) => `void`) : `void`
- get(name: `string`) : `string`
Returns first header that matches given name.
- has(name: `string`) : `boolean`
Checks for existence of header by given name.
- keys() : `string[]`
Returns the names of the headers
- set(name: `string`, value: `string`|`string[]`) : `void`
Sets or overrides header value for given name.
- values() : `string[][]`
Returns values of all headers.
- toJSON() : {[name: `string`]: `any`}
Returns string of all headers.
- getAll(name: `string`) : `string[]`
Returns list of header values for a given name.
- entries()
This method is not implemented.
- 说明
- angular 1.x
- ngModelController
- ngOptions
- ngModelOptions
- lifecycle
- directive
- angular 2
- @angular/forms
- 类
- AbstractControl
- AbstractControlDirective
- AbstractFormGroupDirective
- FormControl
- FormArray
- FormBuilder
- FormGroup
- NgControl
- 接口
- controlValueAccessor
- 指令
- DefaultValueAccessor
- Angular 2 生命周期
- OnInit
- DoCheck
- @angular/router
- 配置
- Routes
- 指令
- RouterOutlet
- RouterLink
- 接口
- ActivatedRoute
- UrlTree
- NavigationExtras
- ActivatedRouteSnapshot
- RouterStateSnapshot
- 类
- UrlSegment
- UrlSegmentGroup
- UrlSerializer
- DefaultUrlSerializer
- Router
- bug记得
- @angular/http
- 类
- Http
- Body
- Response
- ResponseOptions
- Header
- Request
- RequestOptions
- URLSearchParams
- @angular/core
- decorator
- Component-decorator
- animation
- DI
- linker
- TemplateRef
- ElementRef
- EmbeddedViewRef
- ViewRef
- ViewContainerRef
- Query
- ComponentFactory
- ComponentRef
- Renderer
- change_detection
- KeyValueDiffers
- IterableDiffers
- ChangeDetectorRef
- ChangeDetectionStrategy
- Zone
- ngZone
- @angular/common
- 指令
- NgTemplateOutlet
- QueryList
- bootstrap4
- card
- form
- 重点关注博客
- 学习过的文章
- 笔记
- Angular 2 双向绑定
- 将字符串解析成DOM
- rx相关
- operators
- combineLatest
- combineAll
- concat(All, Map, *MapTo)
- 背压(backpressure)
- js事件keycode对应表
- 装饰器
- 有用的代码摘录
- 日期操作
- 数量操作
- 字符操作
- rxjs问题
- 小示例
- h5面试准备
- react
- 开发遇到的问题