[skip ci] refactor: proxy -> middleware

This commit is contained in:
nyagami
2024-11-30 00:35:45 +07:00
parent 195a913998
commit f352783ee1
8 changed files with 274 additions and 851 deletions
+15
View File
@@ -1,3 +1,18 @@
import { Plugin } from '@typings/plugin';
export type PluginList = Record<string, Plugin.PluginItem[]>;
export enum FetchMode {
PROXY,
NODE_FETCH,
CURL,
}
export interface ServerSetting {
CLIENT_HOST: string;
fetchMode: FetchMode;
cookies?: string;
disAllowedRequestHeaders: string[];
disAllowResponseHeaders: string[];
useUserAgent: boolean;
}