MCPcopy
hub / github.com/eggjs/egg / httpclient

Method httpclient

test/fixtures/apps/app-ts/app/controller/foo.ts:94–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92 }
93
94 async httpclient() {
95 await this.app.httpclient.request('url', {
96 method: 'POST',
97 });
98 await this.ctx.curl('url', {
99 method: 'POST',
100 });
101 await this.app.curl('url', {
102 method: 'POST',
103 });
104 }
105
106 // async testViewRender() {
107 // const { ctx } = this;

Callers

nothing calls this directly

Calls 2

curlMethod · 0.65
requestMethod · 0.45

Tested by

no test coverage detected