RequestOptionslink
Creates a request options object to be optionally provided when instantiating a Request
.
弃用说明
说明
This class is based on the RequestInit
description in the Fetch Spec.
All values are null by default. Typical defaults can be found in the BaseRequestOptions
class, which sub-classes RequestOptions
.
构造函数
参数
|
属性
属性名 | 类型 | 说明 |
---|---|---|
method | Http method with which to execute a | |
headers | Headers to be attached to a | |
body | Body to be used when creating a | |
url | Url with which to perform a | |
params | Search parameters to be included in a | |
search | ||
withCredentials | Enable use credentials for a | |
responseType |
方法
Creates a copy of the | ||
参数
返回值 | ||
Note that |