WebClient.prototype.request(): Task<ResponseResult, HttpError>
Make an HTTP request with the specified method.
method: Method
- The HTTP method (GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS).
optional
options: RequestOptions
- Request-specific options that override client defaults.
Task<ResponseResult, HttpError>
A Task that resolves with the response or rejects with an HttpError.