@midwayjs/coreClassesHttpClientVersion: NextSur cette pageHttpClient A simple http clientIndex ConstructorsconstructorPropertiesdefaultOptionsMethodsrequestConstructors constructornew HttpClient(defaultOptions?: Pick<HttpClientOptions<any>, headers | method | timeout>): HttpClientProperties readonlydefaultOptionsdefaultOptions: Pick<HttpClientOptions<any>, headers | method | timeout> = {}Methods requestrequest(url: string, options?: HttpClientOptions<any>): Promise<HttpClientResponse<any>>
A simple http client