ResponseOptionslink
Creates a response options object to be optionally provided when instantiating a Response.
弃用说明
说明
This class is based on the ResponseInit description in the Fetch Spec.
All values are null by default. Typical defaults can be found in the BaseResponseOptionsclass, which sub-classes ResponseOptions.
This class may be used in tests to build Responses for mock responses (see MockBackend).
Example
构造函数
参数
|
属性
| 属性名 | 类型 | 说明 |
|---|---|---|
| body | String, Object, ArrayBuffer or Blob representing the body of the | |
| status | Http status code associated with the response. | |
| headers | Response headers | |
| url |
方法
Creates a copy of the | ||
参数
返回值 | ||
This may be useful when sharing a base Example |