Headers

Experimental

Class

Class Overview

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()

}

Class Description

Constructor

constructor(headers?: Headers|{[name: string]: any})

Static Members

Class Details

exported from http/index, defined in http/src/headers.ts