- Preparing search index...
- The search index is not available
nodewox
- fetch(url: string, options?: {
body?: string;
headers?: {
[key: string]: string;
};
method?: "get" | "post" | "delete" | "put" | "head";
}): Promise<HttpResponse>
-
Parameters
-
url: string
-
Optional
options: {
body?: string;
headers?: {
[key: string]: string;
};
method?: "get" | "post" | "delete" | "put" | "head";
}
-
Optional
body?: string
-
Optional
headers?: {
[key: string]: string;
}
-
Optional
method?: "get" | "post" | "delete" | "put" | "head"
发起http请求
Returns
Http响应对象