2023-10-11 13:46:46 +00:00
|
|
|
export interface ContentProvider {
|
|
|
|
supports: (uri: string) => boolean;
|
|
|
|
fetchContent: (
|
|
|
|
uri: string,
|
|
|
|
path: string,
|
|
|
|
query?: string,
|
|
|
|
) => Promise<Response>;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ContentFilter {
|
2023-10-18 11:20:36 +00:00
|
|
|
process: (
|
|
|
|
response: Response,
|
|
|
|
mineType: string,
|
|
|
|
requestor: string,
|
|
|
|
) => Promise<Response>;
|
2023-10-11 13:46:46 +00:00
|
|
|
}
|