RequestOptionsArgs
Interface for options to construct a RequestOptions, based on RequestInit from the Fetch spec.
已弃用: see https://angular.io/guide/http
interface RequestOptionsArgs {
url?: string | null
method?: string | RequestMethod | null
search?: string | URLSearchParams | {...}
params?: string | URLSearchParams | {...}
headers?: Headers | null
body?: any
withCredentials?: boolean | null
responseType?: ResponseContentType | null
}
属性
属性 | 说明 |
---|---|
url?: string | null | |
method?: string | RequestMethod | null | |
search?: string | URLSearchParams | {
[key: string]: any | any[];
} | null | |
params?: string | URLSearchParams | {
[key: string]: any | any[];
} | null | |
headers?: Headers | null | |
body?: any | |
withCredentials?: boolean | null | |
responseType?: ResponseContentType | null |