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
method
search
params
headers
body
withCredentials
responseType