MCPcopy Create free account
hub / github.com/TestSprite/testsprite-cli / getWithMeta

Method getWithMeta

src/lib/http.ts:208–210  ·  view source on GitHub ↗

* Like `get` / `post` / etc. but returns the full `RequestResult` including * `requestId` and `status`, so callers can surface the requestId in * happy-path output (dogfood item 1).

(path: string, options: RequestOptions = {})

Source from the content-addressed store, hash-verified

206 * happy-path output (dogfood item 1).
207 */
208 async getWithMeta<T>(path: string, options: RequestOptions = {}): Promise<RequestResult<T>> {
209 return this.requestWithMeta<T>('GET', path, options);
210 }
211
212 async postWithMeta<T>(path: string, options: RequestOptions = {}): Promise<RequestResult<T>> {
213 return this.requestWithMeta<T>('POST', path, options);

Callers

nothing calls this directly

Calls 1

requestWithMetaMethod · 0.95

Tested by

no test coverage detected