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

Method request

src/lib/http.ts:646–648  ·  view source on GitHub ↗

* Legacy alias kept for backward-compat with test files that call * `client.request(...)` directly. New callers should use * `requestWithMeta` or the typed helpers (`get`, `post`, etc.).

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

Source from the content-addressed store, hash-verified

644 * `requestWithMeta` or the typed helpers (`get`, `post`, etc.).
645 */
646 async request<T>(method: string, path: string, options: RequestOptions = {}): Promise<T> {
647 return this.requestWithMeta<T>(method, path, options).then(r => r.body);
648 }
649}
650
651function trimTrailingSlash(url: string): string {

Callers

nothing calls this directly

Calls 1

requestWithMetaMethod · 0.95

Tested by

no test coverage detected