MCPcopy
hub / github.com/callumalpass/tasknotes / HTTPRequestLike

Interface HTTPRequestLike

src/api/httpTypes.ts:1–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1export interface HTTPRequestLike {
2 method?: string;
3 url?: string;
4 headers: Record<string, string | string[] | undefined>;
5 on(event: "data", listener: (chunk: string | { toString(): string }) => void): void;
6 on(event: "end", listener: () => void): void;
7 on(event: "error", listener: (error: Error) => void): void;
8}
9
10export interface HTTPResponseLike {
11 statusCode: number;

Callers

nothing calls this directly

Implementers 9

EventEmittersrc/utils/EventEmitter.ts
TaskNotesAPIsrc/api/TaskNotesAPI.ts
MockVaultFileSystemtests/__mocks__/obsidian.ts
Vaulttests/__mocks__/obsidian.ts
MetadataCachetests/__mocks__/obsidian.ts
Workspacetests/__mocks__/obsidian.ts
Eventstests/__mocks__/obsidian.ts
MockEventEmittertests/unit/issues/issue-1425-calendar-
TestEmittertests/unit/issues/issue-1689-reminder-

Calls

no outgoing calls

Tested by

no test coverage detected