MCPcopy Create free account
hub / github.com/openai/openai-node / methodRequest

Method methodRequest

src/client.ts:733–743  ·  view source on GitHub ↗
(
    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>,

Callers 5

getMethod · 0.95
postMethod · 0.95
patchMethod · 0.95
putMethod · 0.95
deleteMethod · 0.95

Calls 2

requestMethod · 0.95
thenMethod · 0.80

Tested by

no test coverage detected