Method
methodRequest
(
method: HTTPMethod,
path: string,
opts?: PromiseOrValue<RequestOptions>,
)
Source from the content-addressed store, hash-verified
| 731 | } |
| 732 | |
| 733 | private methodRequest<Rsp>( |
| 734 | method: HTTPMethod, |
| 735 | path: string, |
| 736 | opts?: PromiseOrValue<RequestOptions>, |
| 737 | ): APIPromise<Rsp> { |
| 738 | return this.request( |
| 739 | Promise.resolve(opts).then((opts) => { |
| 740 | return { method, path, ...opts }; |
| 741 | }), |
| 742 | ); |
| 743 | } |
| 744 | |
| 745 | request<Rsp>( |
| 746 | options: PromiseOrValue<FinalRequestOptions>, |
Tested by
no test coverage detected