/** * HTTP proxy protocol configuration. * * @see https://xtls.github.io/en/config/inbounds/http.html * @see https://xtls.github.io/en/config/outbounds/http.html */ export interface HTTPInboundConfig { /** User accounts for authentication. */ accounts?: HTTPAccount[]; /** Allow transparent proxying (CONNECT + plain HTTP). */ allowTransparent?: boolean; /** User level for policy. */ userLevel?: number; } export interface HTTPAccount { /** Username. */ user?: string; /** Password. */ pass?: string; } export interface HTTPOutboundConfig { /** Server list. */ servers?: HTTPOutboundServer[]; /** Server address (flat format). */ address?: string; /** Server port (flat format). */ port?: number; /** User level (flat format). */ level?: number; /** User email (flat format). */ email?: string; /** Username (flat format). */ user?: string; /** Password (flat format). */ pass?: string; /** Custom HTTP headers. */ headers?: Record; } export interface HTTPOutboundServer { /** Server address. */ address?: string; /** Server port. */ port?: number; /** User list for authentication. */ users?: HTTPOutboundUser[]; } export interface HTTPOutboundUser { /** Username. */ user?: string; /** Password. */ pass?: string; /** User level for policy. */ level?: number; /** User email for stats. */ email?: string; } //# sourceMappingURL=http.d.ts.map