- request<ReturnType, BodyType>(method: string, loc: string, body?: BodyType): Promise<ReturnType>
-
Type Parameters
-
ReturnType = unknown
-
BodyType extends object = object
Parameters
-
method: string
-
loc: string
-
Optional
body: BodyType
Returns Promise<ReturnType>
Returns
response