angular-cn/public/docs/js/latest/api/http/ResponseOptions-class.jade
2015-07-28 13:41:07 -07:00

120 lines
1.3 KiB
Plaintext

p.location-badge.
exported from <a href='../http'>angular2/http</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/http/base_response_options.ts#L5-L44">angular2/src/http/base_response_options.ts (line 5)</a>
:markdown
Creates a response options object similar to the
[ResponseInit](https://fetch.spec.whatwg.org/#responseinit) description
in the Fetch
Spec to be optionally provided when instantiating a
<a href='Response-class.html'><code>Response</code></a>.
All values are null by default.
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor({body, status, headers, statusText, type, url}?: IResponseOptions)
:markdown
.l-sub-section
h3 body
:markdown
.l-sub-section
h3 status
:markdown
.l-sub-section
h3 headers
:markdown
.l-sub-section
h3 statusText
:markdown
.l-sub-section
h3 type
:markdown
.l-sub-section
h3 url
:markdown
.l-sub-section
h3 merge
pre.prettyprint
code.
merge(options?: IResponseOptions)
:markdown